DataDemos
Diese Quelle ist durch die unten verlinkten vorhandenen Beispiele dokumentiert.
src/components/ds/DataDemos.astroVerwendung
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
Beispiele
- work
<Panel><PanelHeader slot="header" path={['Work', t(locale, 'work.path')]} meta={t(locale, 'work.count')} />{workItems(locale).map((w) => <WorkRow {...w} />)}</Panel> <Grid cols={3}>{workItems(locale).map((w) => <WorkCard title={w.title} desc={w.desc} meta={w.meta} glyph={w.glyph} href={w.href} />)}</Grid>
API
Mit dem TypeScript-Parser aus der Quelle gelesen. Vererbte und importierte Typen bleiben Referenzen; verbindlich ist die Implementierung.
interface Props { locale: Locale }Astro.props
Bindings und Defaults aus der Quelle; daraus werden keine Typen erfunden.
locale
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
Verbraucher im Quellcode
Direkte statische, dynamische und Typimporte. Importe beweisen weder einen gerenderten Zweig noch die Veröffentlichung eines Vorschlags.
Abhängigkeiten
./DemoBlock.astro·src/components/ds/DemoBlock.astro@/components/Panel.astro·src/components/Panel.astro@/components/PanelHeader.astro·src/components/PanelHeader.astro@/components/Metric.astro·src/components/Metric.astro@/components/StatCard.astro·src/components/StatCard.astro@/components/ProofGrid.astro·src/components/ProofGrid.astro@/components/Timeline.astro·src/components/Timeline.astro@/components/MetaGrid.astro·src/components/MetaGrid.astro@/components/WorkRow.astro·src/components/WorkRow.astro@/components/WorkCard.astro·src/components/WorkCard.astro@/components/Glyph.astro·src/components/Glyph.astro@/components/Grid.astro·src/components/Grid.astro@/components/glyphs.ts·src/components/glyphs.ts@/i18n/index.ts·src/i18n/index.ts./data.ts·src/components/ds/data.ts