Download packages/ui/src/v2/components/divider-v2.tsx from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 511 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/ui/src/v2/components/divider-v2.tsx
- Command line
-
hf download hf://SaylorTwift/opencode/packages/ui/src/v2/components/divider-v2.tsx
-
curl -L -o divider-v2.tsx https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/ui/src/v2/components/divider-v2.tsx
511 Bytes
| import { type ComponentProps, splitProps } from "solid-js" | |
| import "./divider-v2.css" | |
| export interface DividerV2Props extends ComponentProps<"div"> {} | |
| export function DividerV2(props: DividerV2Props) { | |
| const [local, rest] = splitProps(props, ["class", "classList"]) | |
| return ( | |
| <div | |
| {...rest} | |
| role="separator" | |
| aria-orientation="horizontal" | |
| data-component="divider-v2" | |
| classList={{ | |
| ...local.classList, | |
| [local.class ?? ""]: !!local.class, | |
| }} | |
| /> | |
| ) | |
| } | |