Separator divides related sections of content. It renders a native horizontal rule and works without JavaScript. Use a vertical orientation between items in a row. Set decorative to false when the division has semantic meaning.
Preview
Above the divider
Below the divider
Installation
Usage
import { Separator } from "@/components/ui/separator"
<Separator />Examples
Example
Above the divider
Below the divider
<Separator />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | string | horizontal | Direction of the divider. |
| decorative | boolean | true | Hide decorative dividers from assistive technology. |
| className | string | - | CSS class |