Search the docs

Search Keyframery's docs

Keyframery

Input OTP animation

An invalid code shakes once; typing stays instant. Works on Base UI and Radix through <Cuts />.

with <Cuts />

What moves

WhenWhat you seeTimingHow
The code turns invalidThe slots shake once240 msAutomatic

The active slot moves as you type, so it stays instant.

Install

Input OTP is shadcn's own component. With <Cuts /> in your root layout (Quick start), there's nothing else to add:

npx shadcn add input-otp

Turn it off

Put data-cut="none" on a input otp (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.

On this page