Skip to content
synccn

Separator

Horizontal, vertical or labelled divider.

synccn

Components you copy, own and keep in sync.

DocsComponentsThemes

Installation

$ pnpm dlx shadcn@latest add @synccn/separator

First time in this project? Connect synccn with one command.

Usage

import { Separator } from "@/components/ui/kbd";<Separator label="or" />

API reference

Generated from the component's TypeScript types, so it always matches the code.

  • orientation
    "horizontal" | "vertical"

    Default "horizontal"

    Direction of the line.

  • label
    React.ReactNode

    Text in the middle of a horizontal line.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA roles: separator
  • ARIA attributes: aria-orientation