162
Email and password sign-in with a peek toggle, a one-tap switch to magic links, passkey and SSO buttons, a gentle shake on errors and a calm check-your-inbox state.
akalogin·sign in·auth
Run this in any project set up for the shadcn CLI. It copies the Sign-in Card source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/sign-in-card.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { SignInCard } from "@/components/sign-in-card";
export default function Page() {
return <SignInCard />;
}A free React block in the Auth collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Sign-in Card source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| product | string | "Larkspur" |
| logo | ReactNode | — |
| providers | SignInProvider[] | [] |
| defaultEmail | string | "" |
| defaultMethod | SignInMethod | "password" |
| resendAfter | number | 30 |
| onPasswordSignIn | (email: string, password: string) => Promise<SignInResult> | async () => ({ ok: true }) |
| onSendLink | (email: string) => Promise<void> | async () => {} |
| onProvider | (provider: SignInProvider) => void | — |
| onForgotPassword | (email: string) => void | — |
| onCreateAccount | () => void | — |
| className | string | — |