EnhanceAccordionOptions: {
    allowMultiple?: boolean;
    defaultValue?: string[];
    onValueChange?: (value: string[]) => void;
}

Options for enhanceAccordion.

Type declaration

  • OptionalallowMultiple?: boolean

    Allow more than one panel open at a time. Defaults to false.

  • OptionaldefaultValue?: string[]

    Values of the initially open items. Falls back to the open attributes already present in the markup (e.g. server-rendered state). Item values come from data-hl-value on each <details>, defaulting to the index.

  • OptionalonValueChange?: (value: string[]) => void

    Called with the open item values after every change.