Magic Link Form

A passwordless sign in card with an email field and a Send link button that passes the address to onSend. Built from AuthCard, FormField and Input.

src/registry/ui/magic-link-form.tsx/r/magic-link-form.json

Installation#

bash
npx shadcn@latest add @minidev/magic-link-form

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/magic-link-form.json

Usage#

tsx
import { MagicLinkForm } from "@/components/ui/magic-link-form"

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

API reference#

MagicLinkForm props
PropTypeDefault
onSend(email: string) => void-

Dependencies#

npm

React only
All login and signup components

Learn more