StatCard
Diese Quelle ist durch die unten verlinkten vorhandenen Beispiele dokumentiert.
src/components/StatCard.astroVerwendung
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
Beispiele
- layout-more
<Band><Bento>{proof.map((p) => <StatCard value={p.value} label={p.title} tag={p.tag} />)}</Bento></Band> <CaseShell> <p slot="rail" class="font-mono text-label uppercase tracking-wide text-ink-subtle">{t(locale, 'ds.rail')}</p> <p class="text-ink-muted">{t(locale, 'ds.cardBody')}</p> </CaseShell> - stat-card
<Grid cols={3}><StatCard value={t(locale, 'stat.1.v')} label={t(locale, 'stat.1.k')} /><StatCard value={t(locale, 'stat.2.v')} label={t(locale, 'stat.2.k')} /><StatCard value={proof[1].value} label={proof[1].title} tag={proof[1].tag} /></Grid>
API
Mit dem TypeScript-Parser aus der Quelle gelesen. Vererbte und importierte Typen bleiben Referenzen; verbindlich ist die Implementierung.
type Tone = 'neutral' | 'brand' | 'ok' | 'warn' | 'danger';interface Props { value: string; label: string; tag?: {label: string; tone: Tone} }Astro.props
Bindings und Defaults aus der Quelle; daraus werden keine Typen erfunden.
valuelabeltag
Quellnutzung
Nur Doku / Vorschau
Das ist statische Quellevidenz. Ein erreichbares Modul kann bedingte oder ungenutzte Zweige enthalten. Externe Verbraucher und gestagte statische Seiten liegen außerhalb des Scans. Kein Status ist eine Löschfreigabe.
Dokumentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/DataDemos.astro
- src/components/StatCard.astro
Website · Nur Importpfad: src/pages/en/work/[id].astro → src/components/case/CasePage.astro → src/components/case/CaseBlock.astro → src/components/case/CaseData.astro → src/components/StatCard.astro
Vorschau · Nur Importpfad: src/pages/vorschlag/cases/[id].astro → src/components/case/CasePage.astro → src/components/case/CaseBlock.astro → src/components/case/CaseData.astro → src/components/StatCard.astro
Verbraucher im Quellcode
Direkte statische, dynamische und Typimporte. Importe beweisen weder einen gerenderten Zweig noch die Veröffentlichung eines Vorschlags.
Abhängigkeiten
@/components/ui/badge·src/components/ui/badge.tsx