Visually separates content, horizontally or vertically.
$ pnpm dlx shadcn@latest add https://dashral.com/r/separator.jsonInstallation
$ pnpm dlx shadcn@latest add https://dashral.com/r/separator.jsonAdds the component, the components it builds on, its npm packages and the theme tokens it uses. Using Dashral often? Add the registry to components.json once:
components.json
{
"registries": {
"@dashral": "https://dashral.com/r/{name}.json"
}
}Then add components by name:
$ pnpm dlx shadcn@latest add @dashral/separatorUsage
example.tsx
import { Separator } from "@/components/dashral/separator"
<div className="flex h-5 items-center gap-4 text-sm">
<span>Docs</span>
<Separator orientation="vertical" />
<span>Blog</span>
</div>Examples
API reference
Separator
Also takes every prop of Radix Separator(opens in a new tab).
| Prop | Type | Default |
|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" |
decorative | booleanHidden from assistive technology unless false. | true |
Accessibility
- Decorative by default; set decorative={false} to expose role="separator" between groups of content.