Ravox KitBasics

Separator

The thin line between groups, horizontal or vertical, solid or dashed. With text inside, the label sits in the middle ("or", "Today") or at the start of the line.

ou com e-mail

Settings

Orientação
Rótulo em
Toggles

Examples

Toolbar

Days in a conversation

O pedido 4821 já saiu?

Saiu às 9h, chega amanhã.

Section title

Conta

thiago@ravoxlabs.com

Zona de perigo

Inline metadata

v2.4.0
Atualizado há 3 dias
MIT

Installation

The command creates components/ui/separator.tsx in your project and installs the theme with it. The file is yours: edit it as you like.

npx @ravox-ui/cli add separator

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"When vertical, stretches to the parent's height (use it in a flex container).
childrenReactNode—Label in the middle of the line. Still read by screen readers.
align"start" | "center" | "end""center"Where the label sits on the line.
dashedbooleanfalseDashed line.
decorativebooleantrueVisual only. With false, it becomes role="separator" with aria-orientation (a text label becomes its name).
...propsComponentProps<"div">—Everything a <div> accepts.

More in Basics