How lebauzagit/react-email-starter works
This is a React Email starter centered on a weekly KPI report. A developer opens the live preview, which renders the report using supplied or default KPI data; the report composes a layout, KPI grid, and dashboard link. The grid renders individual KPI cards. The graph preserves the core data and type modules. Preview behavior is documented in the README; source excerpts show the report composition and component calls, but not the preview server’s internal rendering path.
Main entry points: KpiReport.tsx KPI Report · KpiGrid.tsx KPI Grid · kpi.types.ts KPI Contract · package.json Email Preview
Components 9
Live Preview
- Email Preview
package.json
Report Composition
- KPI Report
emails/KpiReport.tsx - Email Layout
components/EmailLayout.tsx - Dashboard Button
components/PrimaryButton.tsx
KPI Data and Display
- KPI Grid
components/KpiGrid.tsx - KPI Card
components/KpiCard.tsx - Sample KPIs
data/mock-kpis.ts - KPI Contract
types/kpi.types.ts
Other components
- Developer
Connections 10
- Developer → Email Preview: opens preview
readme.md - Email Preview → KPI Report: previews
- KPI Report → Email Layout: renders within
emails/KpiReport.tsx - KPI Report → Dashboard Button: renders
emails/KpiReport.tsx - KPI Report → KPI Grid: renders
emails/KpiReport.tsx - KPI Report → Sample KPIs: defaults to
emails/KpiReport.tsx - KPI Grid → KPI Card: renders
components/KpiGrid.tsx - Sample KPIs → KPI Contract: uses type
data/mock-kpis.ts - KPI Report → KPI Contract: accepts type
emails/KpiReport.tsx - KPI Grid → KPI Contract: accepts type
components/KpiGrid.tsx