# Google2FADialog

> The Google 2-Step Verification Dialog is a modern and secure authentication setup component built with ShadCN UI and React. It guides users through enabling two-factor authentication (2FA) using Google Authenticator in a clean, step-by-step interface. The dialog opens centrally on the screen and walks the user through installing the app, adding their account using a setup key, and verifying a six-digit code. Designed with accessibility and clarity in mind, it features subtle animations, semantic structure, and responsive design. This component enhances account security while maintaining a smooth and minimal user experience — ideal for integration in dashboards, user settings, or onboarding flows.

- Author: [Ruixen UI](https://21st.dev/@ruixen.ui)
- Library: [Ruixen UI](https://21st.dev/@ruixen.ui/library/ruixen-ui)
- License: unknown
- npm dependencies: lucide-react
- Live preview: https://21st.dev/@ruixen.ui/components/google2fadialog

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/ruixen.ui/google2fadialog?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
