Inputs
Filtered suggestion field
Filtered suggestion field: A text field that filters a list of suggestions as you type and shows the matches in a dropdown below, with keyboard navigation and a clear button.
Using Filtered suggestion field
Filtered suggestion field uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
placeholder | text | Search… | Up to 40 characters |
accentColor | color | #9BE15D | No additional limit in the metadata. |
maxVisible | number | 5 | From 3 to 8; step 1 |
Which frameworks are available for Filtered suggestion field?
Filtered suggestion field is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Filtered suggestion field depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Filtered suggestion field?
The React source for Filtered suggestion field includes: native elements (button, input); attributes and handlers (aria-activedescendant, aria-autocomplete, aria-controls, aria-expanded, aria-hidden, aria-label, aria-selected, onKeyDown, tabIndex); explicit roles (combobox, listbox, option); key comparisons (ArrowDown, ArrowUp, Enter, Escape). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Filtered suggestion field handle reduced motion?
Filtered suggestion field reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.18. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.