GooseUI

Components

Separator


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

npx shadcn@latest add @gooseui/separator
pnpm dlx shadcn@latest add @gooseui/separator
yarn dlx shadcn@latest add @gooseui/separator
bunx --bun shadcn@latest add @gooseui/separator

Usage

import { Separator } from "@/components/ui/separator"

<Separator />

Examples

Example

Above the divider


Below the divider

<Separator />

Props

PropTypeDefaultDescription
orientationstringhorizontalDirection of the divider.
decorativebooleantrueHide decorative dividers from assistive technology.
classNamestring-CSS class