Billets vendus
4 482
+12,4 %vs semaine derniere
Authenticated dashboard scaffold — greeting header (period caption + H1), KPI strip (1 col mobile → 2 cols sm → 4 cols lg, each tile with label/value/optional delta chip), 2fr/1fr main+side grid (side rail collapses below on <lg) and optional activity feed section. Root is a <main role="main" id="main"> skip-link target; every section landmark is labelled via the bilingual SECTION_LABELS map (locale prop, fr default).
components/templates/dashboardbody/DashboardBody.tsxCorps du tableau de bord : salutation, KPI en grille, graphique principal + rail lateral, activite. FR-CA : « Bonjour, Marie · Indicateurs cles · Performance principale · Activite ».
Template - Admin family (Family 9)
Template de page dashboard. Le parent fournit les KPIs (calcules par le backend), le graphique principal (un composant chart a choisir) et optionnellement un rail lateral et une activite recente.
7 derniers jours · 28 juillet au 4 aout 2026
Billets vendus
4 482
+12,4 %vs semaine derniere
Revenus bruts
228 642 $
+18,1 %
Taux de remboursement
2,1 %
-0,4 pt
Scans portes
3 921
+8,2 %
This component supports light and dark mode.
DashboardBody est compose de : en-tete (greeting + periode), grille de 4 KPIs, zone graphique principale (2/3) + rail lateral (1/3), bloc activite optionnel.
greeting*stringSalutation localisee (Bonjour, Good morning).
userName*stringNom de l utilisateur.
periodLabel*stringLibelle de la periode (7 derniers jours, etc.).
kpis*DashboardKpi[]Indicateurs cles.
mainChart*React.ReactNodeGraphique principal.
sideRailReact.ReactNodeRail lateral optionnel.
activityReact.ReactNodeBloc activite optionnel.
locale"fr" | "en"Locale des libelles de sections integres ("fr" par defaut, "en" supporte).
classNamestringClasses additionnelles appended au <main> racine.
greetingstring—Greeting sentence opener, e.g. "Bonjour" — combined with userName in the H1.
userNamestring—Name of the signed-in user shown in the greeting heading.
periodLabelstring—Small uppercase period caption above the greeting, e.g. "Aujourd'hui · 7 derniers jours".
kpisDashboardKpi[]—KPI tiles: { id; label; value; delta?: { value; trend: 'up' | 'down' | 'flat' }; hint? } — id is the React key, value renders with tabular numerals, trend colors the delta chip (up=success-fg, down=error-fg, flat=muted).
mainChartReact.ReactNode—Primary content of the main column (typically a chart organism).
sideRailReact.ReactNode—Optional content of the narrow side column (aside landmark). Omitted → the main chart spans the full width.
activityReact.ReactNode—Optional activity feed section rendered below the main/side grid.
locale"fr" | "en"'fr'Switches every built-in section label via the SECTION_LABELS map (Indicateurs clés / Key metrics, Performance principale / Main performance, Panneau latéral / Side panel, Activité / Activity).
classNamestring—Appended to the root <main> class list.
<DashboardBody />import { DashboardBody } from "@epasslive/design-system"<DashboardBody greeting="Bonjour" userName="Camille" periodLabel="Aujourd'hui" kpis={[{ id: "rev", label: "Revenus", value: "$48,250", delta: { value: "+12 %", trend: "up" } }]} mainChart={<ChartCard />} sideRail={<QuickActions />} activity={<ActivityList />} /><DashboardBody greeting="Good evening" userName="Camille" periodLabel="Today" kpis={kpis} mainChart={<ChartCard />} locale="en" />— Do not include business logic in templates
— Avoid hardcoded content in templates