Two Factor 4 - Choose a 2FA method with radio cardsPro
A method picker presenting authenticator app, SMS and passkey options as accessible radio cards with descriptions and a recommended badge, followed by a continue button. Use it as the first step when users enable two-factor authentication.
About Two Factor 4
A method picker presenting authenticator app, SMS and passkey options as accessible radio cards with descriptions and a recommended badge, followed by a continue button. Use it as the first step when users enable two-factor authentication.
Two Factor 4 is a pro two factor block for React, built on shadcn/ui and Tailwind CSS. It ships as 114 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- two-factor
- 2fa
- radio cards
- passkey
- sms
- authenticator
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/two-factor-04Dependencies installed automatically: lucide-react.
Uses: button, reveal, utils.
Usage
import TwoFactor04 from "@/components/blocks/two-factor-04"
export default function Page() {
return <TwoFactor04 />
}