Search

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-search

About this component

A glass search capsule beside a glass avatar: clicking in widens the capsule and tips the magnifier, and once you type, a small glass clear button rolls in at the end.

Triggers

  • Focus
  • Click
  • Icon

Techniques

  • CSS transition
  • SVG

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A role="search" form with a native search input; the clear button is named by aria-label ("Clear search").

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
SuggestGet code
  • 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