gov-accordion-item
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
disabled | disabled | Makes the button component disabled. | boolean | false |
identifier | identifier | Custom accordion item identifier. | string | undefined |
open | open | Defines whether the accordion is open or closed by button | boolean | false |
size | size | Accordion’s size. | "l" | "m" | "s" | "xl" | "xs" | undefined |
Events
Event | Description | Type |
---|---|---|
gov-change | Called when the accordion state changes | CustomEvent<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