5
Sponsor

Top Image

Top Image Call To Action rendered with email-safe, renderer-native components.

import { TopImageCallToAction } from "@/components/email/top-image-call-to-action";
import { defaultTheme } from "@/components/email/theme-default";

export function TopImageCallToActionDemo() {
  return (
    <TopImageCallToAction
      description="See the latest improvements, workflows, and resources in one place."
      heading="Everything new this month"
      theme={{ ...defaultTheme, containerWidth: "640px" }}
    />
  );
}

Installation

$ pnpm dlx shadcn@latest add @emailcn/react-email/top-image-call-to-action

Usage

import { TopImageCallToAction } from "@/components/email/top-image-call-to-action";
<TopImageCallToAction />

Examples

CTA with top large image

default

import { TopImageCallToAction } from "@/components/email/top-image-call-to-action";

export function TopImageCallToActionDefaultExampleDemo() {
  return <TopImageCallToAction />;
}

API Reference

PropTypeDefaultDescription
themeEmailThemedefaultThemeRenderer theme configuration.
headingstring"Built for the journey ahead."Configures the component's heading.
descriptionstring-Configures the component's description.
action{ href: string; label: string }-Configures the component's action.
image{ src: string; alt?: string }-Configures the component's image.