Email Button

Solid link button for email templates with a fixed height, padding and rounded corners. Uses an anchor so it survives email clients that strip buttons.

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

Installation#

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

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-button.json

Usage#

tsx
import { EmailButton } from "@/components/ui/email-button"

export function Example() {
  return (
    <EmailButton>Verify email</EmailButton>
  )
}

API reference#

EmailButton props
PropTypeDefault
children*React.ReactNode-
hrefstring"#"
classNamestring-

* required

Examples#

All email templates