Design systém4.2

gov-accordion-item

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledMakes the button component disabled.booleanfalse
identifieridentifierCustom accordion item identifier.stringundefined
openopenDefines whether the accordion is open or closed by buttonbooleanfalse
sizesizeAccordion’s size."l" | "m" | "s" | "xl" | "xs"undefined

Events

EventDescriptionType
gov-changeCalled when the accordion state changesCustomEvent<AccordionItemEvent>

Methods

currentState() => Promise<boolean>

Returns the current state of the component

Returns

Type: Promise<boolean>

toggle() => Promise<void>

Accordion switch

Returns

Type: Promise<void>

Dependencies

Depends on

Graph


Built with StencilJS