Separator
A line between groups of content, horizontal or vertical, as thick as the village's borders.
Rasengan UI
Components themed by villages.
Installation
Or with the shadcn CLI, from the registry:
Usage
Variants
default is a solid line; dashed a dashed one of the same width, for a softer break.
Villages
It is --border-width thick and --border coloured: a hairline in Konoha and Kiri, a 2px ink rule in Iwa.
Rasengan UI
Components themed by villages.
Rasengan UI
Components themed by villages.
Rasengan UI
Components themed by villages.
Rasengan UI
Components themed by villages.
Rasengan UI
Components themed by villages.
Rasengan UI
Components themed by villages.
Accessibility
- A
role="separator"witharia-orientation. When it is only decoration, between items a list already separates, it can be left out of the accessibility tree witharia-hidden.
API reference
The props of Base UI's Separator (orientation, default "horizontal"), plus variant ("default" \| "dashed") and className.
separatorVariants({ variant }) returns its classes.