Clay
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldClay(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/input-clayAbout 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