Tags

  • Motion
  • Glass
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-tags

About this component

A clear glass field that turns what you type into tags: press Enter or a comma and the word buds off the caret as a bead of pastel glass, wobbling into place; the cross or Backspace bursts it again.

Triggers

  • State change
  • Spring
  • Morph

Techniques

  • Keyframes
  • CSS variables
  • State machine

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native text input (aria-label "Add a tag"), the chips in a list (aria-label "Tags") with a remove button each ("Remove <tag>"), and an aria-live region announcing what was added or removed.

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

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

27 of 44 · the first letter is illuminated

Drop capGet code