Divider

Alignment target:@astryxdesign/core v0.7.1 · Divider

<Divider
  label="or"
  variant="subtle"
  orientation="horizontal"
/>

Divider Props #

NameTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Orientation of the divider.
labelstring | 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.
isFullBleedbooleanfalseExtend to the container edges with negative margins.

Slots #

  • label: rich content in the middle of the divider. Replaces the label prop text.

Theme #

CSS
.my-divider {
  --astryx-divider-color-subtle: #00000014;
}
  • --astryx-divider-color-subtle: color of the subtle line.
  • --astryx-divider-color-strong: color of the strong line.
  • --astryx-divider-label-color: label text color.
  • --astryx-border-width: line thickness.