Skip to content
Browse docs and components

Separator

separator

A hairline between two things. Horizontal by default and vertical when rotated, with the vertical one stretching to fill the row it sits in so it works between buttons without a height being passed.

Responsive

Above the line

Below it

Install

$npxshadcnadd@forme/separator

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

Parts

  • SeparatorTakes ComponentProps<typeof SeparatorPrimitive>