Separator
A structural divider with native separator semantics and an explicit decorative mode.@gemologic/sheen · surfacesPlayground
First section
Second section
Second section
<Stack><Text>First section</Text><Separator decorative={false} orientation="horizontal"/><Text>Second section</Text></Stack>Variant matrix
Separator composition
First section
Second section
Second section
orientation: horizontal
First section
Second section
Second section
orientation: vertical
First section
Second section
Second section
Anatomy
- Package
@gemologic/sheen- Source
packages/ui/src/primitives/Separator.tsx- Tokens
--sheen-color-bg-raised--sheen-color-border--sheen-color-focus-ring-offset
Accessibility
Role: separator unless decorativeKeyboard: No component-owned keysDo
- Use role tokens and preserve the surrounding keyboard order.
Do not
- Do not add structural borders or shadows merely as decoration.
Generated props
| Name | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | horizontal | Horizontal or vertical separation. Vertical separators stretch within a constrained flex or grid row. |
decorative | boolean | false | Hide a purely visual divider from assistive technology. |