Skip to content

Collapse

Used to create regions of content that can expand/collapse with a basic animation. It helps to hide content that's not immediately relevant to user.

Import

js
import { MpCollapse } from '@mekari/pixel3'

Playground

API

MpCollapse

Props
Events
Slots
NameTypeDefault
is-open
If true, content will be visible
booleanfalse
duration
Animation duration of collapse.
number250
is-animate-opacity
If true, content will be animated.
booleantrue
easing
Animation type of collapse.
stringeaseInOutSine
starting-height
Height of closed collapse.
number -
ending-height
Content height of open collapse.
number -