Installation
npx shadcn@latest add @iconiq/r-separatorProps
Separator
Horizontal or vertical separator with the same Iconiq line, dashed, and dotted variants layered over Radix UI primitives.
orientation"horizontal" | "vertical"Default "horizontal"
variant"line" | "dashed" | "dotted"Default "line"
decorativebooleanDefault true
classNamestringCurrent install target: Radix UI.
Dependencies declared by this registry entry: @radix-ui/react-separator.
Vertical separators rely on their parent for height, so place them inside a row with an explicit height or pass a height class.
The dashed variant uses background gradients so horizontal and vertical strokes keep the same dash rhythm. The dotted variant uses border rendering to keep dots crisp at one pixel.
Installs a Radix separator with the same orientation, decorative, className, and variant API as the Base UI version.
Uses the Radix separator primitive under the same Iconiq line, dashed, and dotted visual treatments.
Semantics
The component defaults to decorative presentation, but both primitive versions can opt into separator semantics.
Built on the Radix Separator primitive while preserving the same decorative default and semantic opt-in as the Base UI version.
Pass decorative=false when the divider is meaningful enough to be announced by assistive technology.
Additional primitive props and data attributes are forwarded to the root element for composition with layout or menu surfaces.
Registry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: @radix-ui/react-separator.
Installs a Radix separator with the same orientation, decorative, className, and variant API as the Base UI version.
Uses the Radix separator primitive under the same Iconiq line, dashed, and dotted visual treatments.
The generated registry file is /r/r-separator.json.