PanelHeader
This source is documented by the existing examples linked below.
src/components/PanelHeader.astroUsage contract
- 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.
Examples
- 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
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
interface Props { path: string[]; meta?: string; dots?: boolean; menu?: {label: string; items: {label: string; href: string}[]}; variant?: 'path' | 'label'; bare?: boolean }Astro.props
Bindings and defaults read from source; these do not add inferred types.
pathmetadots = falsemenuvariant = 'path'bare = false
Slots: leading · meta
Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
Documentation
- src/pages/design-system/storybook-patterns.astro
- src/components/PanelHeader.astro
Preview
- src/pages/vorschlag/ueber-mich-kurz.astro
- src/components/site/about/AboutShort.astro
- src/components/PanelHeader.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
- 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
Dependencies
@/components/islands/PanelMenu·src/components/islands/PanelMenu.tsx@/components/ui/badge·src/components/ui/badge.tsx