Suggest
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldSuggest(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/input-suggestAbout this component
A glass invite field over a frosted list of people: typing narrows the list and lifts the best match onto a tinted glass row, and picking one fills the field with their name.
Triggers
- Focus
- State change
Techniques
- CSS transition
- State machine
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A text input with a visually hidden label ("Invite member") that controls a list of suggestions (aria-label "Suggestions"); each person is a real button, so Tab reaches them and Enter or a click fills the field.
Reduced motion
The transitions and loops stop and the component jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence
More inputs
See all5 of 8 · it heats while you type, Enter brands it
7 of 14 · Enter boxes it
5 of 20 · sets in 8 s · Enter pours a new slab