Skip to main content
Version: v6

ion-accordion-group

shadow

Contents

Accordion group is a container for accordion instances. It manages the state of the accordions and provides keyboard navigation.

For more information as well as usage, see the Accordion Documentation

Interfaces

AccordionGroupChangeEventDetail

interface AccordionGroupChangeEventDetail<T = any> {
value: T;
}

AccordionGroupCustomEvent

While not required, this interface can be used in place of the CustomEvent interface for stronger typing with Ionic events emitted from this component.

interface AccordionGroupCustomEvent<T = any> extends CustomEvent {
detail: AccordionGroupChangeEventDetail<T>;
target: HTMLIonAccordionGroupElement;
}

Properties

animated

DescriptionIf true, all accordions inside of the accordion group will animate when expanding or collapsing.
Attributeanimated
Typeboolean
Defaulttrue

disabled

DescriptionIf true, the accordion group cannot be interacted with.
Attributedisabled
Typeboolean
Defaultfalse

expand

DescriptionDescribes the expansion behavior for each accordion. Possible values are "compact" and "inset". Defaults to "compact".
Attributeexpand
Type"compact" ๏ฝœ "inset"
Default'compact'

mode

DescriptionThe mode determines which platform styles to use.
Attributemode
Type"ios" ๏ฝœ "md"
Defaultundefined

multiple

DescriptionIf true, the accordion group can have multiple accordion components expanded at the same time.
Attributemultiple
Typeboolean ๏ฝœ undefined
Defaultundefined

readonly

DescriptionIf true, the accordion group cannot be interacted with, but does not alter the opacity.
Attributereadonly
Typeboolean
Defaultfalse

value

DescriptionThe value of the accordion group.
Attributevalue
Typenull ๏ฝœ string ๏ฝœ string[] ๏ฝœ undefined
Defaultundefined

Events

NameDescription
ionChangeEmitted when the value property has changed.