Skip to content

Divider ​

Horizontal

Loading...

Vertical

Loading...

A divider component that provides a thin line for grouping elements.

  • Tag: <flint-divider>
  • Class: FlintDivider

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintDivider } from 'flint-ui';

Usage ​

html
<flint-divider></flint-divider>

Properties ​

PropertyAttributeTypeDefaultDescription
orientationorientation'horizontal' | 'vertical''horizontal'Orientation of the divider line.
variantvariant'full' | 'middle' | 'inset''full'Inset variant controlling how far the divider extends.
weightweight'light' | 'medium' | 'heavy''light'Thickness of the divider line.
textAligntext-align'left' | 'center' | 'right''center'Alignment of text content within the divider.

Slots ​

NameDescription
(default)Optional text or content to display within the divider.

CSS Custom Properties ​

PropertyDefault
--flint-divider-margin—
--flint-divider-thickness—
--flint-divider-color—
--flint-border-color—
--flint-font-family—
--flint-text-color-muted—