Skip to content
On this page

Collapse ​

An easy way to toggle what you want

Examples ​

Base

Show code

Accordion

Open to read something intersting written for you!

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nulla accumsan, metus ultrices eleifend gravida,
nulla nunc varius lectus, nec rutrum justo nibh eu lectus.
Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.

What the different between Oruga and Buefy?

Nothing special, ignore it!

Show code

Class props ​

'Classes applied to the element'

Collapse Title

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

Collapse component ​

html
<o-collapse></o-collapse>

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

Sass variables ​

Current theme ➜ Oruga Base

SASS VariableDefault

See ➜ πŸ“„ Full scss file

Current theme ➜ Oruga Full

SASS VariableDefault

See ➜ πŸ“„ Full scss file

Current theme ➜ Bulma

The theme does not have any custom variables for this component.

Current theme ➜ Bootstrap

The theme does not have any custom variables for this component.

Released under the MIT License.