@knock-codes
Copy-paste, session-gated access blocks for React — PIN/Knock Code unlock screens, protected routes/layouts/modals, a headless useKnockCodes hook, and full-page templates.
Install this registry
npx shadcn@latest add https://knock.codes/r/react/registry.json pnpm dlx shadcn@latest add https://knock.codes/r/react/registry.json bunx shadcn@latest add https://knock.codes/r/react/registry.json curl -s https://knock.codes/r/react/registry.json Components
19 totalShows an inert blurred teaser beneath a prompt; blur is presentation, not security. Does not verify codes, persist state, or grant or revoke access. Contract: …
npx shadcn@latest add https://knock.codes/r/react/blur-veil.json Displays controlled demo-code entry, normalizing pasted message artifacts. Does not verify codes, unlock content, store values, or make network requests. Contr…
npx shadcn@latest add https://knock.codes/r/react/code-field.json Displays a calm countdown without enforcing a retry policy. Does not verify codes, persist state, or grant or revoke access. Contract: the consumer owns lifecy…
npx shadcn@latest add https://knock.codes/r/react/cooldown-notice.json Shows a preview lifetime as fine, expiring soon, or expired. Does not verify codes, persist state, or grant or revoke access. Contract: the consumer owns lifec…
npx shadcn@latest add https://knock.codes/r/react/expiry-pill.json Keeps build identity, expiry, feedback and relocking available after unlock. Does not verify codes, persist state, or grant or revoke access. Contract: the con…
npx shadcn@latest add https://knock.codes/r/react/preview-bar.json Keeps a draft label visible within preview screenshots. Does not verify codes, persist state, or grant or revoke access. Contract: the consumer owns lifecycle …
npx shadcn@latest add https://knock.codes/r/react/preview-ribbon.json Marks unlocked work with a light recipient or build overlay for screenshots. Does not verify codes, persist state, or grant or revoke access. Contract: the con…
npx shadcn@latest add https://knock.codes/r/react/preview-watermark.json Addresses a private preview to its intended recipient. Does not verify codes, persist state, or grant or revoke access. Contract: the consumer owns lifecycle t…
npx shadcn@latest add https://knock.codes/r/react/recipient-line.json Lets the consumer hide a preview on a shared screen. Does not verify codes, persist state, or grant or revoke access. Contract: the consumer owns lifecycle tim…
npx shadcn@latest add https://knock.codes/r/react/relock-control.json Routes a recipient without a code to the preview owner. Does not verify codes, persist state, or grant or revoke access. Contract: the consumer owns lifecycle …
npx shadcn@latest add https://knock.codes/r/react/request-access.json Your next chapter is ready for a first look. Enter the code from your invitation. Does not verify codes, persist state, or grant or revoke access. Contract: al…
npx shadcn@latest add https://knock.codes/r/react/client-preview-gate.json Your preview is still here. Give it a moment before your next try. Does not verify codes, persist state, or grant or revoke access. Contract: all blocks share …
npx shadcn@latest add https://knock.codes/r/react/cooldown-screen.json The invitation window has ended. Ask the studio for a fresh link. Does not verify codes, persist state, or grant or revoke access. Contract: all blocks share c…
npx shadcn@latest add https://knock.codes/r/react/expired-notice.json This part of the preview was prepared for invited reviewers. Does not verify codes, persist state, or grant or revoke access. Contract: all blocks share contro…
npx shadcn@latest add https://knock.codes/r/react/gated-section.json This look is for you. Continue when you are ready. Does not verify codes, persist state, or grant or revoke access. Contract: all blocks share controlled input…
npx shadcn@latest add https://knock.codes/r/react/open-invitation.json Enter your invitation code to see the draft. Does not verify codes, persist state, or grant or revoke access. Contract: all blocks share controlled input and v…
npx shadcn@latest add https://knock.codes/r/react/preview-chrome.json Enter your preview code to continue. Does not verify codes, persist state, or grant or revoke access. Contract: all blocks share controlled input and visibilit…
npx shadcn@latest add https://knock.codes/r/react/quick-gate.json The owner has withdrawn access. Contact them if you need another look. Does not verify codes, persist state, or grant or revoke access. Contract: all blocks sh…
npx shadcn@latest add https://knock.codes/r/react/revoked-notice.json Your private preview is just one invitation away. Does not verify codes, persist state, or grant or revoke access. Contract: all blocks share controlled input …
npx shadcn@latest add https://knock.codes/r/react/teaser-gate.json