Separator
A hairline between groups of content.
Set orientation="vertical" between items in a row; give the row a height.
Dependencies
What it's built from and what's built from it in Mocha, read from the imports in its source.
| Uses | Nothing else in the system. |
|---|---|
| Used by | Nothing yet. |
| Packages | @ui-sdk/core@0.1.0-beta.20@ui-sdk/react@0.1.0-beta.20 |
Installation
Set the project up for Mocha once first, as Getting started shows. Then add it with the CLI, or by hand.
With the CLI
Manually
Install its packages:
Then copy the source:
API reference
Generated from Mocha's types. Props marked ours are added here; the rest come from the ui-sdk part it wraps. Every part also accepts its element's native attributes.
Separator
A soft line between groups of content, horizontal unless orientation="vertical".
- className
Type string | ((state: NoInfer<SeparatorState>) => string)
- debug
Logs every state change with its reason to the console, in development builds.
Type boolean
- decorative
Hides the separator from assistive technology with
role="none", for a line that's only visual. Leave it off when the separator divides content a screen reader should hear as separate, like groups of menu items.Type boolean · Default false
- orientation
Which way the line runs. A vertical separator divides items in a row.
Type SeparatorOrientation · Default "horizontal"
- render
Type RenderProp<NoInfer<SeparatorState>>
- style
Type CSSProperties | ((state: NoInfer<SeparatorState>) => CSSProperties)