Separator
Separator component, a horizontal or vertical line that can hold a label such as or.
How to use it
Run npx @blossomui/react add separator, or copy src/components/UI/Separator/Separator.tsx into your React project and import it.
import { Separator } from './components/ui/Separator'Props
SeparatorProps
| Prop | Type | Description |
|---|---|---|
| orientation | 'horizontal' | 'vertical' | |
| variant | 'solid' | 'dashed' | 'dotted' | Line style. |
| children | ReactNode | Text or element shown in the line, for example "or". Only in horizontal separators. |
| align | 'start' | 'center' | 'end' | Where the content sits in the line. |
| decorative | boolean | Use it when the line is only decoration: screen readers skip it. |
| className | string |