/
132
Sponsor

Payment

Payment Timeline rendered with email-safe, renderer-native components.

import { PaymentTimeline } from "@/components/email/payment-timeline";
import { defaultTheme } from "@/components/email/theme-default";

export function PaymentTimelineDemo() {
  return (
    <PaymentTimeline
      variant="3-steps"
      theme={{ ...defaultTheme, containerWidth: "640px" }}
    />
  );
}

Installation

$ pnpm dlx shadcn@latest add @emailcn/jsx-email/payment-timeline

Usage

import { PaymentTimeline } from "@/components/email/payment-timeline";
<PaymentTimeline variant="3-steps" />

Examples

Four steps

import { PaymentTimeline } from "@/components/email/payment-timeline";

export function PaymentTimelineFourStepsDemo() {
  return <PaymentTimeline variant="4-steps" />;
}

API Reference

PropTypeDefaultDescription
themeEmailThemedefaultThemeRenderer theme configuration.
variant"3-steps" | "4-steps""3-steps"Configures the component's variant.
amountstring"$9.99"Configures the component's amount.
firstDatestring"Paid: 17/11"Configures the component's firstdate.
secondDatestring"17/12"Configures the component's seconddate.
thirdDatestring"17/01"Configures the component's thirddate.
fourthDatestring"17/02"Configures the component's fourthdate.