Unlock Screen
A sign-in approval screen with a passcode pad and the details of the sign-in.
Installation
npx shadcn@latest add @venusui/unlock-01Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Files added to your project
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/passcode-pad.tsxfrom passcode-pad@/components/unlock-01.tsx
Usage
The code behind the preview above.
unlock-01-demo.tsx
import { Unlock01 } from "@/components/unlock-01"
export default function Unlock01Demo() {
return <Unlock01 />
}
API reference
No props. The demo passcode is 2580; replace onSubmit with a call to your server.
Requirements
- VenusUI
passcode-pad. The CLI installs it. - React 19 and Tailwind CSS v4.
Customization
- Fill the device and location from the sign-in request.
Accessibility
- Labelled by its
h2; the pad announces progress and the result.
Troubleshooting
- Something looks different from the preview.
- Blocks use your project’s theme and your own shadcn components, so they follow your styles.
Unknown registry "@venusui"- Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (
npx shadcn@latest), install by URL, or register it with its address:npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json. No components.json found- Run
npx shadcn@latest initin your project first.