API reference
@salmonui/navigation/accordion
7 exported symbols: 2 functions, 4 interfaces and 1 type. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/navigation/accordion';Functions
AccordionAPG Accordion: a stack of AccordionItems, each a header button inside a heading and a role="region" panel. .salmon-accordion with data-type. ref is the root <d…AccordionItemOne accordion section. .salmon-accordion-item with data-state (open / closed) and data-disabled; parts .salmon-accordion-heading, .salmon-accordion-trigger, .s…
Interfaces
AccordionBeforeChangeEventonBeforeValueChange event; preventDefault() cancels the change.AccordionChangeEventSecond argument of onValueChange (frozen in development).AccordionItemPropsAccordionProps
Types
AccordionSourceInput that changed the expanded items; 'find' is the browser's find-in-page revealing a collapsed panel.