Haedong
014

Separator

Display
Sign in with email
Continue with GitHub

Customize

Direction
Label

Code

<Separator />

Install

npx shadcn@latest add https://components.haedong.dev/r/separator.json

Props

Renders an <hr> when horizontal and unlabeled, otherwise a div with role="separator". Extends the native props of that element.

PropTypeDescription
orientation"horizontal" | "vertical"Vertical rules stretch to their flex row. Defaults to "horizontal".
childrenReactNodeOptional muted uppercase label set into a horizontal rule.
classNamestringExtra classes for the rule.