Separator
A simple line or divider used to visually separate groups of content or UI elements.
Default separator
Success separator
Danger separator
Installation
Usage
API
Separator Props
For Separator Component
| Attribute | Type | Description | Default |
|---|---|---|---|
| variant | "default" | "danger" | "success" | Controls the color style of the separator. | "default" |
| size | "sm" | "md" | "lg" | Controls the vertical spacing around the separator. | "md" |
| orientation | "horizontal" | "vertical" | Controls whether the separator is horizontal or vertical. | "horizontal" |
| decorative | boolean | When true, renders the separator as decorative only without accessibility semantics. | false |
| className | string | Additional CSS classes to customize the separator styling. | - |
Examples
Horizontal
OR
Vertical
OR
Credits
This component is inspired by Rehman Kalawant Design Shared On Github.