Back to Shark UI

Separator

docs/components/separator

latest5.7 KB
Original Source

Sections

Components

Utilities

Forms

Hooks

Separator

Copy Markdown

Visually separate content with a line.

PreviewCode

Shark UI

A set of primitive components for building UI.

A collection of accessible, beautiful, and customizable components.

Installation#

CLIManual

pnpmbunnpmyarn

pnpm dlx shadcn@latest add @shark/separator

Usage#

import { Separator } from "@/components/ui/separator";
<Separator />

Examples#

Vertical#

Use orientation prop to control the orientation of the separator.

PreviewCode

Blog

Docs

Source

PreviewCode

Blog

Latest posts

Docs

API references

Source

View on GitHub

List#

PreviewCode

Item 1Value 1

Item 2Value 2

Item 3Value 3

API Reference#

Separator#

Horizontal or vertical divider between content.

PropTypeDefault
orientation`"horizontal""vertical"`
classNamestring-

For complete list of props, see Ark UI documentation.

[

Previous page

Select ](/docs/components/select)[

Next page

Sheet ](/docs/components/sheet)

On This Page

InstallationUsageExamplesVerticalMenuListAPI ReferenceSeparator