Separator
Visually or semantically separates content.
Installation
Command to install the Separator component.
Component Guide
Use the following to build the Separator component.
from components.ui.separator import separatorSource Code & Dependencies
For manual installation, copy each of the source codes below in their respective locations.
components/core/core.py
components/ui/separator.py
Examples
Default
The default orientation is "horizontal".
Props used: none required — orientation="horizontal" is the default.
Vertical
Props used: orientation="vertical" on separator.
Menu
Vertical separators between menu items with descriptions.
Props used: orientation="vertical" on separator.
List
Horizontal separators between list items.
Props used: none required — orientation="horizontal" is the default.
- Item 1
- Value 1
- Item 2
- Value 2
- Item 3
- Value 3
API Reference
separator
separator(orientation="vertical")
When decorative=True (the default), aria-hidden="true" is set — the separator is treated as purely visual. Set decorative=False to render it as a semantic role="separator" for assistive technology instead.