Skip to content

Separator

Visually or semantically separates content.

HUIN Hub

An open-source Human Interface Hub.

Blog
Docs
Source

Installation

npm i @huin-core/react-separator

API Reference

Separator

PropTypeDescription
asChildbooleanWhen 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.
decorativebooleanWhen true, signifies that it is purely visual, carries no semantic meaning, and ensures it is not present in the accessibility tree.