Divider
The Divider component provides a reusable pattern for divider in the interface.
Size
sm
md
lg
full
Style
dashed
dotted
solid
Title
Title
Title with Frame
Title
Title
Title
API
| Parameter | Default | Description |
|---|---|---|
|
componentElement
|
div | The tag to use for this component. |
|
style
|
dashed | Either dashed, solid or dotted. |
|
size
|
md | The length of the divider. Either sm, md or lg. |
|
title
|
Title to be displayed in the divider. | |
|
titleVariant
|
h2 | - |
|
align
|
center | Alignment of text in the divider. left, center or right. |
|
frame
|
true | If set to true, the title will be wrapped in a frame. |
|
customFont
|
false | Enable if font color should be customized. Default: false |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-divider--color--surface
|
var(--color--surface) | color | - | Surface |
|
--c-divider--border-width
|
var(--border-width) | range | - | Size |
|
--c-divider--border-radius
|
var(--border-radius) | range | - | Border Radius |
|
--c-divider--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-divider--corner-shape
|
var(--corner-shape) | select | square, round, squircle, circular, bevel, scoop | Corner Shape |