Components
Loading preview...
This component is a combined Sign Up and Login modal built with ShadCN UI and React. It allows users to toggle between signing up and logging in without opening separate dialogs, providing a seamless authentication experience. The form dynamically adjusts its fields based on the mode, showing the Full Name input only during Sign Up. The password field includes a show/hide toggle using Lucide Eye and EyeOff icons for better usability. Additional features include a Google sign-in button, responsive layout, and a terms acknowledgment for Sign Up.
npx shadcn@latest add https://21st.dev/r/ruixen.ui/auth-dialogimport AuthDialog from "@/components/ui/auth-dialog";
export default function DemoOne() {
return <AuthDialog />;
}