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
Name | Type | Default | Description |
---|---|---|---|
title | string | - | content of Collapse Item title |
content | string | - | content of Collapse Item |
show | boolean | false | expand the Collapse |
cls | string | - | Additional class |
attrs | any | {} | Additional attributes |
Collapse Events
Name | Description | Type |
---|---|---|
change | Event fired when the show is changes | (show: Event)=> void |
Collapse Slots
Name | Description |
---|---|
title | Customize Collapse Item title content |
content | Customize Collapse Item content |