Email Card

Content card for transactional emails with an optional title and body text, inset from the email edges. Use it for receipts, codes and highlights.

src/registry/ui/email-card.tsx/r/email-card.json

Installation#

bash
npx shadcn@latest add @minidev/email-card

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/email-card.json

Usage#

tsx
import { EmailCard } from "@/components/ui/email-card"

export function Example() {
  return (
    <EmailCard title="Did not request this?">Ignore this message — your account stays unchanged.</EmailCard>
  )
}

API reference#

EmailCard props
PropTypeDefault
titlestring-
children*React.ReactNode-
classNamestring-

* required

Examples#

All email templates