sigilUI

Divider

Separate regions with a token-aligned structural band.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { SigilDivider } from "@sigil-ui/components";

Usage

<SigilDivider />

Structural rhythm

Horizontal Divider bands advance layout by exact multiples of --s-grid-cell.

<SigilPageGrid>
  <SigilSection snapBottomToGrid>...</SigilSection>
  <SigilDivider />
  <SigilSection snapBottomToGrid>...</SigilSection>
</SigilPageGrid>

The md size is one full cell. Borders are visual strokes, not layout borders, so a bordered divider remains exactly var(--s-grid-cell) tall. The top stroke is painted one pixel above the divider box and the bottom stroke is painted inside it; this avoids the common "everything is aligned but looks 1px low" problem caused by real CSS borders painting inside the next box.

Do not set divider thickness tokens to calc(var(--s-grid-cell) + 1px). The layout box must stay on full-cell intervals.

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical"horizontalDivider orientation.
patternDividerPattern—Pattern variant filling the divider band. Defaults to the surrounding page grid pattern.
size"xs" | "sm" | "md" | "lg" | "xl"mdBand thickness.
opacitynumber1Pattern opacity.
scalenumber1Pattern scale multiplier.
showBordersbooleantrueShow border lines on the band edges.
showCrossbooleanfalseShow cross marks at endpoints.
labelReactNode—Optional label rendered in the center.
fadeEdgesbooleanignoredDeprecated; divider edge fades were removed so patterns render full width.
decorativebooleantrueIf true, this is purely decorative (aria-hidden).

Token integration

CSS VariablePurpose
--s-grid-line-colorGrid line color
--s-border-mutedBorder muted
--s-divider-borderDivider border
--s-divider-thickness-mdOne full-cell divider height
--s-grid-cellStructural vertical period
--s-border-width-thinBorder width thin
--s-border-styleBorder style
--s-borderBorder
--s-cross-strokeCross stroke
--s-backgroundBackground
--s-text-mutedText muted
--s-font-monoFont mono