Accordion
Divide content into collapsible sections.
Import
js
import { MpAccordion, MpAccordionHeader, MpAccordionIcon, MpAccordionItem, MpAccordionPanel } from '@mekari/pixel3'
Playground
API
MpAccordion
Props
Events
Slots
Name | Type | Default |
---|---|---|
default-index-open | number | - |
is-allow-multiple | boolean | false |
is-allow-toggle | boolean | false |
is-controlled | boolean | false |
MpAccordionItem
Props
Slots
Name | Type | Default |
---|---|---|
id | string | - |
is-open | boolean | false |
is-default-open | boolean | false |
is-disabled | boolean | false |
MpAccordionHeader
Props
Slots
Name | Type | Default |
---|---|---|
is-clickable | boolean | true |
MpAccordionIcon
Props
Name | Type | Default |
---|---|---|
name | IconName | caret-down |
MpAccordionPanel
Slots
Name | Type |
---|---|
default | any |