Two Factor Setup

Two-factor setup card with a QR code area, a one-time code input and a Verify and enable button, guiding users through linking an authenticator app in React.

src/registry/ui/two-factor-setup.tsx/r/two-factor-setup.json

Installation#

bash
npx shadcn@latest add @minidev/two-factor-setup

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/two-factor-setup.json

Usage#

tsx
import { TwoFactorSetup } from "@/components/ui/two-factor-setup"

export function Example() {
  return <TwoFactorSetup />
}

API reference#

TwoFactorSetup takes no props. It ships with realistic sample content: install it, then edit the copy and data in the file directly. The file is yours.

Dependencies#

npm

React only
All login and signup components

Learn more