Skip to content

KDivider

The dividing line that separates the content.

Install

bash
pnpm add @ikun-ui/divider
bash
yarn add @ikun-ui/divider
bash
npm install @ikun-ui/divider

Basic usage

Divide the text of different paragraphs.

Custom content

You can customize the content on the divider line.

Line Style

You can set the style of divider.

Vertical divider

Divider Props

NameTypeDefaultDescription
directionhorizontal / verticalhorizontalSet divider's direction.
borderColorstring'b-ikun-bd-base'divider's line color.
borderStyledotted | dashed | solid | double | groove | ridge | inset | outsetsoliddivider's line style.
contentPositionleft / center / rightcenterthe position of the customized content on the divider line.
clsstring-Additional class for component
attrsRecord<string, string>{}Additional attributes

Divider Slots

NameDescription
defaultcustomized content on the divider line.

MIT Licensed