Themes
Marketing
Ecommerce
One Buttons component covers every style. Switch the look with the variant
prop, add an optional icon, and control placement with align.
Primary
Primary with Icon
Secondary
Secondary with Icon
Text Link
Text Link with Icon
Installation
$ pnpm dlx shadcn@latest add @emailcn/buttons
Usage
import { Buttons } from "@/components/emails/ui-elements/buttons/buttons";<Buttons variant="primary" label="Get Started" href="https://example.com" />
<Buttons variant="secondary" icon="ā" label="Learn More" href="https://example.com/learn" />
<Buttons variant="text" label="Unsubscribe" href="https://example.com" />API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "primary" | "secondary" | "text" | "primary" | Button style |
label | string | "Click Here" | Button label |
href | string | "#" | Button link URL |
icon | string | - | Optional leading icon/glyph |
align | "left" | "center" | "right" | "center" | Horizontal alignment |
theme | EmailThemeTokens | defaultTheme | Email theme styling |