Combobox
Combobox — type to narrow a long list, then choose. An editable combobox with a listbox (the APG pattern, list autocomplete, chosen by hand). Focus stays in the text box the whole time; the arrow keys
Evidence
What the kit's own checks measured on this component, from their committed records. A result is what was found, not a certificate.
| Check | What it measures | Result | When |
|---|---|---|---|
| Controls | every prop reachable from a story's controls | 5 stories opened; none flagged | 2026-11-28 |
| Radius | corner radii from the kit's scale only | 5 stories opened; none flagged | 2026-11-28 |
| Attributes | only valid data-tk attributes and values | 5 stories opened; none flagged | 2026-11-28 |
| Titles | each story has a heading and a title | 5 stories opened; none flagged | 2026-11-28 |
| Accessibility (axe) | axe-core on each story, at desktop and phone width | 5 stories opened; none flagged | 2026-11-28 |
| Reflow at 320px | each story at 320px wide: no sideways scroll | 5 stories opened; none flagged | 2026-11-28 |
| Forced colours | each story in Windows high contrast | 5 stories opened; none flagged | 2026-11-28 |
| Reduced motion | each story with reduced motion: nothing keeps moving | 5 stories opened; none flagged | 2026-11-28 |
| Keyboard (its contract's keys) | each key its contract promises, pressed on a fresh story | 2 keys pressed; each does what the contract says | 2026-11-28 |
| Events (what it reports) | each event its contract declares, triggered and checked; nothing undeclared, no vendor called | 1 of 1 declared event arrive as declared | 2026-11-28 |
| Right to left | each story set right to left: nothing pushed off the page | 5 stories opened; none flagged | 2026-11-28 |
| Text 40% longer | every text made about 40% longer: no words cut, no sideways scroll | 5 stories opened; none flagged | 2026-11-28 |
| Design matches code | the Figma component laid over the rendered code, per skin | Combobox: mean Δ 1.81, worst 1.81 over 1 skin | 2026-10-19 |
| Figma | where it is drawn in the Figma library | 1 component in the library; Code Connect linked; 3 Figma properties paired or decided | |
| Tokens | the tk slots its CSS reads | reads 19 tk slots |
Not checked yet
- Screen-reader wording and reading order, heard by a person.
- Native platforms (no SwiftUI or Compose kit yet).
- No contrast pair is labelled with its elements; its colours are checked only through the components it uses.
Props
| Prop | Type | Required | In Figma |
|---|---|---|---|
| label | text | yes | Combobox.Label |
| hint | text | no | not drawn |
| error | text | no | not drawn |
| required | boolean | no | not drawn |
| optional | boolean | no | not drawn |
| id | text | no | not drawn |
| name | text | no | not drawn |
| chars | 10 | 20 | 30 | no | not drawn |
| disabled | boolean | no | not drawn |
| options | other | yes | not drawn |
| value | text | no | Combobox.Value |
| defaultValue | text | no | not drawn |
| onChange | event | no | not drawn |
| inputValue | text | no | not drawn |
| onInputChange | event | no | not drawn |
| allowCustom | boolean | no | not drawn |
| kind | search | select | no | not drawn |
| openOnFocus | boolean | no | not drawn |
| filter | other | no | not drawn |
| emptyText | text | no | not drawn |
| loading | boolean | no | not drawn |
Keyboard and screen readers
- ArrowDown opens the list
- Escape closes the list
What it reports
The kit sends nothing anywhere: a component dispatches one DOM event, tk:event, and only a page that listens forwards it. Never sent: typed text, an option's label or value, names, emails.
- select: an option is chosen, with position (number), of (number)
Tokens it reads
focus-color, focus-width, icon-sm, line-default, radius-lg, radius-md, radius-nested, shadow-md, size-sm, space-1, space-2, space-3, surface-raised, surface-sunken, text-disabled, text-primary, text-secondary, weight-normal, weight-semibold