Component librarySeparator
Separator
FreeA horizontal or vertical divider with decorative and semantic modes.
npx shadcn@latest add https://tidalui.com/r/separator.jsonInstallation
Terminal
Import components/ui/tidal.css, components/ui/separator.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Native div attributes and ref, horizontal/vertical orientation, and decorative (true by default). Decorative dividers are hidden from assistive technology; semantic mode exposes role=separator and its orientation, with an optional native aria-label. Horizontal separators fill the container width; vertical separators stretch in a flex row with a one-em minimum. Set the containing row height or pass a native style height when needed. Children, role, aria-hidden and aria-orientation are owned by the divider. No focus stop or user interaction is added. Colors use the shared border token and remain visible in forced colors.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.