Separator primitive for Fict, modeled after @radix-ui/react-separator. A visual or semantic divider between content.
Part of ui-primitives, a port of Radix Primitives to Fict.
pnpm add @fictjs/separator fict/** @jsxImportSource fict */
import * as Separator from '@fictjs/separator'
export function Example() {
return (
<>
<span>Docs</span>
<Separator.Root orientation="vertical" decorative />
<span>Blog</span>
</>
)
}Separator.Root(Root) —orientation="horizontal" | "vertical"(defaults tohorizontal),decorative(whentrue, hidden from assistive technology). SupportsasChild.
Exposes data-orientation.
- Components:
Separator(Root). - Types:
SeparatorProps,Orientation.
The API mirrors Radix, so the upstream Radix Separator docs apply. See the ui-primitives overview and the architecture guide for the Fict-specific reactivity model.
MIT © Fict contributors.