Divider
Alignment target:@astryxdesign/core v0.7.1 · Divider
or
<Divider
label="or"
variant="subtle"
orientation="horizontal"
/>Divider Props #
| Name | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Orientation of the divider. |
label | string | number | — | Text centered on the divider. Also used as the accessible name. Numeric zero stays visible; an empty string does not. |
variant | 'subtle' | 'strong' | 'subtle' | Line weight. strong uses the emphasized border color. |
isFullBleed | boolean | false | Extend to the container edges with negative margins. |
Slots #
label: rich content in the middle of the divider. Replaces thelabelprop text.
Theme #
CSS
.my-divider {
--astryx-divider-color-subtle: #00000014;
}--astryx-divider-color-subtle: color of thesubtleline.--astryx-divider-color-strong: color of thestrongline.--astryx-divider-label-color: label text color.--astryx-border-width: line thickness.