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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintDivider } from '@getufy/flint-ui';

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
orientationorientationOrientation'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.
textAligntextAlign'left' | 'center' | 'right''center'Alignment of text content within the divider.

Slots ​

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

CSS Parts ​

NameDescription
baseThe component's base wrapper element.

CSS Custom Properties ​

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