Separator
Visually or semantically separates content.
HUIN Hub
An open-source Human Interface Hub.
Blog
Docs
Source
Installation
npm i @huin-core/react-separatorAPI Reference
Separator
| Prop | Type | Description |
|---|---|---|
| asChild | boolean | When set to true, renders the component as its child element, inheriting the child's styles and behavior. |
| orientation | "vertical" | "horizontal" | Specifies the direction or layout of the component, determining whether it is displayed vertically or horizontally. |
| decorative | boolean | When true, signifies that it is purely visual, carries no semantic meaning, and ensures it is not present in the accessibility tree. |