Skip to main content

inno-accordion

light backgroundTextText
dark backgroundTextText

Properties

PropertyAttributeDescriptionTypeDefault
collapsedcollapsedYou can programatically open/close the accordion with this property.booleanfalse
innerinnerWhether it is an accordion inside another accordion. Gives a different style then the main one.booleanfalse
labellabelText to display for the accordion. Always visible whether the accordion is opened or closed.stringundefined
lastlastWhether the accordion is the last in a group of accordions. Needed for styling.booleanfalse
secondLabelsecond-labelSecondary text for the accordion. Always visible whether the accordion is opened or closed.stringundefined
variantvariantColor variant of the accordion."dark" | "light"'light'

Events

EventDescriptionType
collapsedChangedThis event is fired whenever the accordion is opened/closed via user interaction.CustomEvent<{ element: HTMLInnoAccordionElement; collapsed: boolean; }>

Dependencies

Depends on

Graph


Built with StencilJS