synccn
Components you copy, own and keep in sync.
DocsComponentsThemes
or continue with
Installation
$ pnpm dlx shadcn@latest add @synccn/separatorFirst 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.
PropTypeDescription
- orientation
"horizontal" | "vertical"Default
"horizontal"Direction of the line.
- label
React.ReactNodeText in the middle of a horizontal line.
- className
stringExtra 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
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
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
More display
CardSurface with header, content and footer slots.BadgeSmall status label with an optional dot.AvatarImage with initials fallback, presence dot and stacked groups.KbdKeyboard key for shortcuts and hints.AccordionExpanding sections with smooth height animation.TabsPill or underline tabs with a sliding indicator and arrow keys.