# KptFieldset (kpt-fieldset) A group of fields with a legend (`
`+``), optionally collapsible. Import: `import { KptFieldset } from '@konce-pt/angular';` ## Inputs / model - `legend`: string - `variant`: 'outlined' | 'filled' (default 'outlined') - `outlined` is just the frame on the parent's background; `filled` puts the group on the surface colour (sections inside a grey panel, say). The legend takes the group's background with rounded ends, so where it crosses the frame it reads as one element, never as a strip in two colours - `toggleable`: boolean; `collapsed`: model - `animated`: boolean (default true) - the collapse animation (CSS grid, pure CSS) - `animationDuration`: number (default 500) - animation time in ms - `collapseMotion`: `'spring' | 'fade' | 'none'` (default from `provideKptMotion`, else `spring`) - see "Collapse motion" - Content: ``. ## Example ... ... ## 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`, `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. ## Tokens Border `--kpt-color-border`; radius `--kpt-radius-md`; `filled` background `--kpt-color-surface`; legend corners `--kpt-radius-full`.