Separator
A thin rule between blocks, across or down, with an optional word in the middle.
Workspace
Name, logo and the URL people sign in at.
Members
Who can see and edit this workspace.
Installation
npm i @uisatin/uiimport { Separator } from '@uisatin/ui/separator'About 9.6 kB of JavaScript, minified and gzipped, with what it imports (React aside). The stylesheet is one file for every component.
npx shadcn@latest add https://uisatin.dev/r/separator.jsonAdds separator.tsx to components/ui.
First time with Satin? Set it up once, styles and fonts included, with the installation guide.
API Reference
The Separator component is a 1px rule. It is decorative unless decorative={false}, which makes it a role="separator".
| Prop | Type | Default |
|---|---|---|
orientation | "horizontal""vertical" | "horizontal" |
label | ReactNode | — |
decorative | boolean | true |
className | string | — |
ref | Ref<HTMLDivElement> | — |
...props | ComponentProps<'div'>Other attributes go to <div> | — |
Accessibility
Decorative by default: role="none", so screen readers skip it. With decorative={false} it is role="separator" with aria-orientation. A label is plain text either way and is read.
Something wrong or missing on this page?
Report a problemSuggest an improvement