Seek

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-seek

About this component

A soft search field that expands: a short pressed well in a matte plate with a teal cursor blinking beside the magnifier. Focus stretches the plate out to full width with a spring, the magnifier turns teal, and a raised round clear button pops up as soon as you type.

Triggers

  • Focus
  • Spring
  • Neumorphic
  • State change
  • Icon

Techniques

  • CSS variables
  • CSS transition
  • Keyframes
  • SVG

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native search input named by aria-label ("Search") and a real button ("Clear search") that is only in the tab order while there is text to clear; the button has a :focus-visible outline and the field shows focus as a teal ring inside the well. Drawn parts are aria-hidden.

Reduced motion

Every transition and animation is switched off.

Use it in anything you build, commercial and client work included. Licence

More inputs

See all
StickerGet code
StitchGet code
SumGet code
SwissGet code