PanelHeader
Diese Quelle ist durch die unten verlinkten vorhandenen Beispiele dokumentiert.
src/components/PanelHeader.astroVerwendung
- Panel owns the surface; PanelHeader and PanelFooter own window chrome. Do not nest decorative surfaces.
- 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.
- 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.
- Existing composed portfolio example; reuse its building blocks rather than copying a whole page.
Beispiele
- panel
<Section flush> <Container size="page" flush> <Grid cols={2}> <Panel> <PanelHeader slot="header" path={['Home', t(locale, 'home.proofPath')]} meta={t(locale, 'home.proofCount')} dots /> <div class="p-6 text-sm text-ink-muted">{t(locale, 'ds.cardBody')}</div> </Panel> <Panel> <PanelHeader slot="header" path={['Work', t(locale, 'work.path')]} meta={t(locale, 'work.count')} menu={{label: t(locale, 'ds.menuLabel'), items: [{label: t(locale, 'ds.menuAll'), href: '/work/'}]}} /> <div class="p-6 text-sm text-ink-muted">{t(locale, 'ds.cardBody')}</div> </Panel> </Grid> </Container> </Section> - metric
<Panel class="max-w-text"><PanelHeader slot="header" path={['Home', t(locale, 'home.proofPath')]} meta={t(locale, 'home.proofCount')} dots />{proof.map((p) => <Metric value={p.value} title={p.title} text={p.text} tag={p.tag} />)}</Panel> - proof-grid
<Panel><PanelHeader slot="header" path={['Home', t(locale, 'home.proofPath')]} meta={t(locale, 'home.proofCount')} /><ProofGrid items={proof} /></Panel> - timeline
<Panel class="max-w-text"><PanelHeader slot="header" path={['Home', t(locale, 'career.path')]} meta={t(locale, 'career.count')} /><Timeline items={careerItems(locale)} /></Panel> - 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> - composition
<CompositionD locale={locale} />
API
Mit dem TypeScript-Parser aus der Quelle gelesen. Vererbte und importierte Typen bleiben Referenzen; verbindlich ist die Implementierung.
interface Props { path: string[]; meta?: string; dots?: boolean; menu?: {label: string; items: {label: string; href: string}[]}; variant?: 'path' | 'label'; bare?: boolean }Astro.props
Bindings und Defaults aus der Quelle; daraus werden keine Typen erfunden.
pathmetadots = falsemenuvariant = 'path'bare = false
Slots: leading · meta
Quellnutzung
Website-Referenz
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.
Website
Dokumentation
- src/pages/design-system/storybook-patterns.astro
- src/components/PanelHeader.astro
Vorschau
- src/pages/vorschlag/ueber-mich-kurz.astro
- src/components/site/about/AboutShort.astro
- src/components/PanelHeader.astro
Verbraucher im Quellcode
Direkte statische, dynamische und Typimporte. Importe beweisen weder einen gerenderten Zweig noch die Veröffentlichung eines Vorschlags.
- src/components/case/CaseData.astro:16 import
- src/components/case/CaseFacts.astro:7 import
- src/components/case/CaseHero.astro:14 import
- src/components/case/CaseLab.astro:8 import
- src/components/case/CaseMockWin.astro:7 import
- src/components/case/ModelCards.astro:6 import
- src/components/case/ModelColumns.astro:7 import
- src/components/case/ModelCompare.astro:6 import
- src/components/case/ModelRows.astro:6 import
- src/components/case/ProcessRail.astro:6 import
- src/components/ds/CompositionD.astro:6 import
- src/components/ds/DataDemos.astro:4 import
- src/components/ds/LayoutDemos.astro:9 import
- src/components/site/about/AboutNew.astro:33 import
- src/components/site/about/AboutShort.astro:34 import
- src/components/site/work-cards-lab/CaseIdentity.astro:3 import
- src/components/site/work-content/WorkCards.astro:7 import
src/pages/design-system/storybook-patterns.astro:4import
Abhängigkeiten
@/components/islands/PanelMenu·src/components/islands/PanelMenu.tsx@/components/ui/badge·src/components/ui/badge.tsx