Input animation
An input that turns invalid after a submit gives one short shake; never while you type.
with <Cuts />
What moves
| When | What you see | Timing | How |
|---|---|---|---|
| It turns invalid after a submit or blur | One short shake | 240 ms | Automatic |
Install
Input is shadcn's own component. With <Cuts /> in your root layout (Quick start), there's nothing else to add:
npx shadcn add inputTurn it off
Put data-cut="none" on a input (or anything around it) to keep shadcn's own motion there. <Cuts responses="none" /> turns off every response across the app and keeps the cuts. With reduced motion, movement becomes a short fade or nothing.