Web · Components
Separator
Thin line separating content.
2 exports
Live example
Preview
@yasinsensoy/web
React component library.
Subsection
Code
Events
- Events appear here when you interact with the preview.
Import
Thin line separating content.
Examples
SeparatorProps
interfaceProps of the Separator component.
Extends: ComponentProps<"div">
| Name | Type | Default | Description |
|---|---|---|---|
orientation? | "horizontal" | "vertical" | "horizontal" | |
decorative? | boolean | true | If true it is purely visual and hidden from screen readers. Pass false if it semantically divides content into sections. |
label? | ReactNode | Text shown in the middle of the line (e.g. "or"). Horizontal only. |