Rotary phone passcode lock: dial a code to unlock content
Free React component · Rotary Passcode
A gold rotary phone that guards your content. Dial the passcode by turning the finger wheel (it spins back with a ratchet click per number); the right code rings the bell, lifts the handset and reveals what's inside, a wrong one rattles it, and a decoy code gets an apology. Once unlocked it's a working phone: dial tone, dial any number, ring-back, connect to named contacts with a call timer. While locked, incoming calls ring and can be answered by lifting the handset. Keyboard dialing, light and dark theme, synthesized sounds.
Install
npx shadcn@latest add "https://21st.dev/r/aakashmehra/rotary-passcode?api_key=$API_KEY_21ST"
Run it in a React project set up for shadcn/ui. It needs a free 21st.dev API key, or copy the code from the component's page on 21st.dev.
Overview
- Built with
- React · Tailwind CSS · Motion · Lucide
- npm packages
- motion, lucide-react
- Price
- Free and open source (MIT licence)
Questions
Is the Rotary Passcode free?
Yes. It's free and open source under the MIT licence, so you can use it in personal and commercial projects.
How do I add the Rotary Passcode to my project?
In a React project set up for shadcn/ui, run the install command on this page with your 21st.dev API key. You can also open it on 21st.dev and copy the code.
What does the Rotary Passcode need?
React and Tailwind CSS, plus motion and lucide-react from npm.
More components
Want something like this on your site?
I design and build websites with interactions like this one, from the first idea to launch.