Separator
@sushindustries/uiA rule with two directions and an accessibility decision: announced when it separates content, silent when it is furniture.
Separator draws a rule in either direction, horizontal or vertical. Pass
decorative for a purely visual divider that is hidden from screen readers;
leave it off when the rule genuinely separates content and should be
announced as one.
tanstacktanstack add https://adamjurek.com/r/tanstack/separator.jsonpnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/separator.jsonWhy it is built this way
Whether a rule gets announced is an accessibility decision, not a styling
one, so decorative swaps the actual element rather than just its look: a
real <hr> when it separates content, a styled, aria-hidden span when it
is furniture. A data attribute alone could never have carried that
distinction honestly.
Install
tanstack add https://adamjurek.com/r/tanstack/separator.jsonshell
pnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/separator.jsonshell
pnpm add @sushindustries/ui @sushindustries/atomsshell
What you get
| Version | 0.1.0 |
| Category | layout · Page structure |
| Files | separator.tsx |
| Dependencies | None |
| Tags | divider, no-deps |
No runtime dependencies
It brings nothing with it beyond the stylesheet.