# KptSplitButton (kpt-split-button) A split button - a primary action + a drop-down menu of secondary actions (CDK Overlay). Import: `import { KptSplitButton } from '@konce-pt/angular';` Requires `import '@angular/cdk/overlay-prebuilt.css';` ## Inputs - `variant`: `KptSplitButtonVariant` = 'filled' | 'tonal' | 'outline' | 'text' (default 'filled') - the subset of `KptButtonVariant` that has a style; `outline` and `text` use the `--kpt-button-outline-*` and `--kpt-button-text-*` tokens, so they match `kpt-button` in the same row - `items`: KptMenuItem[] - { label, value?, icon?, danger?, disabled?, separator? } It also honors `header` (a non-clickable row with `avatar`/`label`/`description`), `description` (a second line) and `badge` + `badgeVariant` (a badge on the right) - described in full in menu/llms.txt. - `disabled`: boolean ## Outputs - `primaryClick`: void - a click on the primary button - `selected`: KptMenuItem - an entry picked from the menu ## Keyboard The toggle is a menu button: `aria-haspopup="menu"`, a live `aria-expanded`, `aria-controls` while open. `ArrowDown` / `ArrowUp` on it open the menu on the first / last item; inside, `ArrowDown` / `ArrowUp` wrap, `Home` / `End` jump, `Escape` / `Tab` close, and closing or picking returns focus to the toggle. Same rules as the menu - see menu/llms.txt. ## Example Save items: KptMenuItem[] = [ { label: 'Save as draft', value: 'draft' }, { separator: true }, { label: 'Discard', value: 'discard', danger: true }, ]; ## Motion Pressing either part squeezes the whole pill (one part alone would come apart from the other inside the clipped container); the arrow turns over when the menu opens and the menu slides out from under the button. Pure CSS; durations follow `--kpt-motion-scale`, so `enabled: false` turns it off, and it drops out under "reduce motion". ## Tokens Colors: `filled` / `tonal` from `--kpt-color-primary` / `--kpt-color-muted`, `outline` / `text` from the `--kpt-button-*` tokens of those variants; the panel `--kpt-color-surface-raised`, `--kpt-elevation-3`.