Report a problem or share feedback← Catalog
Code Slots
freereact-bits/code-slots
One-time-code input where a hidden overlay input owns focus, paste and SMS autofill while each slot lands its digit on one spring: the fill swells from the centre, the digit rises and the caret glides; a wrong code drains the slots in a cascade, a right one merges them into a single accent wash.
$
npx shadcn@latest add @react-bits/CodeSlots-TS-TWnpm deps: motion, @hugeicons/react, @hugeicons/core-free-icons
- Source
- React Bits
- Kind
- component
- Categories
- code
- Use as
- drop-in — replaces your component
- Applies to
- code
- Motion
- on enter · medium · motion · medium cost · respects reduced motion
- Tags
- micro, motion
- Licence
- MIT + Commons Clause: free to use in commercial apps/sites, but you may not sell or redistribute the components themselves (alone, bundled, or ported). React Bits Pro is a separate paid product.
- Live demo
- www.reactbits.dev
- Docs
- www.reactbits.dev
Similar
Compare all 4 →- Terminalmagicui/terminalAnimated terminal with typing + sequenced lines for CLI/dev-tool heroes. bg-background/border-border (only the traffic-light dots are literal colours). Imports motion/react even though the registry lists no deps.
- Terminalaceternity/terminalMac-style terminal with typewriter — dev-tool landing pages.
- Terminal Animationcult-ui/terminal-animationComposable terminal animation primitives with typed command playback, tabbed scenarios, and customizable output rendering