Skip to content
On this page

KCollapse

Use Collapse to store contents.

Install

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

Basic usage

You can expand multiple panels

Custom title and content

You can render content through slots

Collapse Props

NameTypeDefaultDescription
titlestring-content of Collapse Item title
contentstring-content of Collapse Item
showbooleanfalseexpand the Collapse
clsstring-Additional class
attrsany{}Additional attributes

Collapse Events

NameDescriptionType
changeEvent fired when the show is changes(show: Event)=> void

Collapse Slots

NameDescription
titleCustomize Collapse Item title content
contentCustomize Collapse Item content

MIT Licensed