Collapsible Groups
Toggle the visibility of content across your project with a few classes and our JavaScript plugins.
We crafted custom components for collapsible groups, a perfect component for content that you want to hide and show it based on user's needs. To use the component, import the following components
import Collapse from '@/components/Collapse/Collapse'
import CollapseItem from '@/components/Collapse/CollapseItem'
Global usage
Vue.component(Collapse.name, Collapse)
Vue.component(CollapseItem.name, CollapseItem)
For local usage
export default {
components: {
Collapse,
CollapseItem
}
}
Simple example
Customize animation duration
Keep only one item opened
Open a specific item
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Show Code
Collapse Props
Prop Name | Type | Default | Description |
---|---|---|---|
animationDuration | Number | 250 | Collapse animation duration |
multipleActive | Boolean | true | Whether you can have multiple collapse items opened at the same time |
activeIndex | Number | -1 | Active collapse item index |
Collapse Slots
Name | Description |
---|---|
default | Default content for collapse items |
Collapse Slots
Slot | Description |
---|---|
default | Default content for collapse items |
Collapse Item Props
Prop Name | Type | Default | Description |
---|---|---|---|
title | String | N/A | Collapse item title |
id | String | N/A |
Collapse Item Slots
Slot | Description |
---|---|
default | Default content for item content |
title | Content for the clickable area of the collapse item |