# KptAccordion (kpt-accordion) + KptAccordionPanel (kpt-accordion-panel) An accordion - a group of expandable panels. Import: `import { KptAccordion, KptAccordionPanel } from '@konce-pt/angular';` ## KptAccordion - `multi`: boolean - allows several panels open at once (default: only one) - `animated`: boolean (default true) - the panel expand animation (CSS grid, pure CSS) - `animationDuration`: number (default 500) - animation time in ms (inherited by the panels) - `collapseMotion`: `'spring' | 'fade' | 'none'` (default from `provideKptMotion`, else `spring`) - see "Collapse motion" ## KptAccordionPanel - `title`: string (required); `disabled`: boolean; `expanded`: model ## Example ... ... Single/multi coordination: a panel calls its parent through inject(KptAccordion). ## Collapse motion - `spring` - the height opens on a soft spring, the content slides in from above and sharpens out of a blur; when collapsing, the content fades first and only then the section closes. The chevron turns on a spring. - `fade` - the height on the standard curve, the content cross-fades. - `none` - the state changes without motion. With no value it takes `collapse` from `provideKptMotion` (default `spring`). `animated: false` on the accordion, `enabled: false` in the config and the system "reduce motion" setting always turn it off. `animationDuration` sets the time of every kind. Pure CSS: the kind sits in `data-motion` on the component root. ## Accessibility Each header is a native button with `aria-expanded` and `aria-controls`; the body is a `role="region"` named by its header (`aria-labelledby`), so a screen reader announces both the state and what it belongs to. A collapsed body is `inert` and `aria-hidden`, skipped by the keyboard and the screen reader alike.