Component
Separator
A simple separator for lists, panels, and docs layouts.
Preview
Above
Below
Installation
Install the package, then import the component and shared stylesheet in your app.
Package install
Install the package when you want components imported from axie-ui.
install
pnpm add axie-uiImport
code
import "axie-ui/styles.css";import { Separator } from "axie-ui";Registry install
Use the direct URL when you want shadcn to copy editable source into your app. This works without the official registry and does not install axie-ui.
registry
pnpm dlx shadcn@latest add https://axie.alexi.life/r/separator.jsonCopied source import
code
import "@/styles/axie.css";import { Separator } from "@/components/axie/separator";Prefer @axie/separator? Add the Axie namespace once from the Installation page, then use that shorthand.
Usage
code
import { Separator } from "axie-ui";export function Example() { return <Separator />;}Accessibility
- Decorative separators should be hidden from assistive technology.
- Use semantic section headings when the divider separates major content.
- Do not use separators as the only signal for grouped controls.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | horizontal | vertical | horizontal | Separator axis. |