import { HeaderWithLogoAndFinanceStats } from "@/components/email/header-with-logo-and-finance-stats";
import { defaultTheme } from "@/components/email/theme-default";
export function HeaderWithLogoAndFinanceStatsDemo() {
return (
<HeaderWithLogoAndFinanceStats alignment="left" theme={defaultTheme} />
);
}Installation
$ pnpm dlx shadcn@latest add @emailcn/mjml-react/header-with-logo-and-finance-stats
Usage
import { HeaderWithLogoAndFinanceStats } from "@/components/email/header-with-logo-and-finance-stats";<HeaderWithLogoAndFinanceStats alignment="left" />Examples
Centered
import { HeaderWithLogoAndFinanceStats } from "@/components/email/header-with-logo-and-finance-stats";
export function HeaderWithLogoAndFinanceStatsAlignmentCenterExampleDemo() {
return <HeaderWithLogoAndFinanceStats alignment="center" />;
}Stats first
import { HeaderWithLogoAndFinanceStats } from "@/components/email/header-with-logo-and-finance-stats";
export function HeaderWithLogoAndFinanceStatsStatsFirstDemo() {
return <HeaderWithLogoAndFinanceStats alignment="right" />;
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
theme | EmailTheme | defaultTheme | Renderer theme configuration. |
logoSrc | string | "https://placehold.co/320x96/0F766E/FFFFFF.png?text=Maizzle%20Insignia" | Configures the component's logosrc. |
logoAlt | string | "Maizzle" | Configures the component's logoalt. |
logoHref | string | "https://example.com" | Configures the component's logohref. |
stats | Array<{ alt: string; change: string; label: string; positive: boolean; src: string }> | Built-in stats | Configures the component's stats. |
alignment | "left" | "center" | "right" | "left" | Configures the component's alignment. |
pageBackgroundColor | string | "#f1f5f9" | Configures the component's pagebackgroundcolor. |
backgroundColor | string | "#fffffe" | Configures the component's backgroundcolor. |