The native or explicitly semantic separator.
Primitive contract
Divider
Marks a meaningful horizontal separation with border tokens and native semantics.
Thematic or structural separator · @sanchika/primitivesPurpose and semantics
Marks a meaningful horizontal separation with border tokens and native semantics.
Recommended semantic: Prefer hr for thematic separation; use role="separator" only when that programmatic meaning is correct.
Anatomy
Finite variants and important states
- Required states
- default, forced-colors
- Class hooks
.sk-divider
Composed synthetic exemplar
Rendered state matrix
Divider: 2 required states
Each specimen starts from the package-owned example and contract state inventory. Simulated pointer and focus frames are labelled; consumers still verify real interaction in context.
Accessibility and consumer responsibility
- Divider is never keyboard focusable.
- Use hr or role=separator only for meaningful separation.
- Decide whether the break is thematic
- Avoid decorative overuse
- Spans the available inline size without overflow.
No override is needed because the primitive adds no motion.
- The boundary remains visible with CanvasText.
Compact API reference
- Package
@sanchika/primitives- CSS
@sanchika/primitives/styles.css- Contract
primitiveSpecs.find((contract) => contract.name === "Divider")- Primary class
.sk-divider