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
Collapse Props
Collapse Slots
Name | Description |
---|---|
default | Default content for collapse items |
Collapse Slots
Slot | Description |
---|---|
default | Default content for collapse items |
Collapse Item Props
Collapse Item Slots
Slot | Description |
---|---|
default | Default content for item content |
title | Content for the clickable area of the collapse item |