Suggest

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-suggest

About 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 all
  • Motion
  • Glass
TagsGet code

5 of 8 · it heats while you type, Enter brands it

Branding ironGet code

7 of 14 · Enter boxes it

Candy heartGet code

5 of 20 · sets in 8 s · Enter pours a new slab

Wet cementGet code