Separator
Server ComponentVisual divider between content.
Import
tsx
import { Separator } from "@cronus-ui/ui";
bash
npx cronus-ui add separator
Examples
.cronus
The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.
horizontal.cronus
app "audit-fixtures" {
port 5176
}
style {
preset aurora
theme dark
}
component SeparatorHorizontal layout:inline style:separator {
label "horizontal"
}
page "/audit/separator/horizontal" type:custom {
use SeparatorHorizontal
}
API Reference
Generated from the component's exported types.
SeparatorProps
Extends ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | — | — |
decorative | boolean | true | When true, hidden from the accessibility tree. |
asChild | boolean | — | Render as the child element via Slot. |