Clay

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-clay

About this component

A password field modelled in soft lilac clay, with a pale well pressed into it for the text. A fat cursor blinks in the well, focus squashes the clay for a moment, and the eye button shows or hides what you typed.

Triggers

  • Focus
  • Click
  • Spring
  • Icon swap

Techniques

  • Keyframes
  • CSS transition
  • stroke-dashoffset
  • SVG

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native password input named by aria-label ("Password") and a real button ("Show password") that carries aria-pressed; both show a :focus-visible outline. 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
DecoGet code
DelftGet code
DraftGet code
E-inkGet code