5
Sponsor

Collage

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

import { CollageCallToAction } from "@/components/email/collage-call-to-action";
import { defaultTheme } from "@/components/email/theme-default";

export function CollageCallToActionDemo() {
  return (
    <CollageCallToAction
      treatment="side"
      theme={{ ...defaultTheme, containerWidth: "640px" }}
    />
  );
}

Installation

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

Usage

import { CollageCallToAction } from "@/components/email/collage-call-to-action";
<CollageCallToAction treatment="side" />

Examples

CTA with shifted images

side

import { CollageCallToAction } from "@/components/email/collage-call-to-action";

export function CollageCallToActionTreatmentSideExampleDemo() {
  return <CollageCallToAction treatment="side" />;
}

offset

import { CollageCallToAction } from "@/components/email/collage-call-to-action";

export function CollageCallToActionTreatmentOffsetExampleDemo() {
  return <CollageCallToAction treatment="offset" />;
}

shifted

import { CollageCallToAction } from "@/components/email/collage-call-to-action";

export function CollageCallToActionTreatmentShiftedExampleDemo() {
  return <CollageCallToAction treatment="shifted" />;
}

collage

import { CollageCallToAction } from "@/components/email/collage-call-to-action";

export function CollageCallToActionTreatmentCollageExampleDemo() {
  return <CollageCallToAction treatment="collage" />;
}

API Reference

PropTypeDefaultDescription
themeEmailThemedefaultThemeRenderer theme configuration.
headingstring-Configures the component's heading.
descriptionstring-Configures the component's description.
action{ href: string; label: string }-Configures the component's action.
imagesArray<{ src: string; alt?: string }>-Configures the component's images.
treatment"offset" | "shifted" | "side" | "collage""side"Configures the component's treatment.