Skip to content
On this page

Collapse

An easy way to toggle what you want

Base

Show code

Accordion

Title 1

Text 1

Title 2

Title 3

Show code

Class props


Collapse Title

Collapse Content
How does Class props inspector work?
Class propDescriptionPropsSuffixes
contentClassClass of the content.
rootClassClass of the root element.
triggerClassClass of the trigger element.


Props

Prop nameDescriptionTypeValuesDefault
animationCustom animation (transition name)string-
From config

collapse: {
  animation: 'fade'
}
ariaIdstring-''
openWhether collapse is open or not, v-model:open to make it two-way bindingboolean-true
overrideboolean-
positionTrigger positionstringtop, bottom'top'

Events

Event namePropertiesDescription
update:open
open
close

Slots

NameDescriptionBindings
trigger
default

Style

📄 Full scss file

CSS VariableSASS VariableDefault

Released under the MIT License.