Dev Design Library

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.

Code Slots preview
Library
React Bits
Framework
React
Type
component
License
Commons-Clause+MIT
Install
npx shadcn@latest add @react-bits/CodeSlots
Files
  • src/content/Micro/CodeSlots/CodeSlots.css
  • src/content/Micro/CodeSlots/CodeSlots.jsx
Source
https://github.com/DavidHDev/react-bits

Categories

More from React Bits