Grid
This source is documented by the existing examples linked below.
src/components/Grid.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> - 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> - 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> - system-map
<Grid cols={2}><SystemMap nodes={mapNodes} edges={mapEdges} caption={t(locale, 'map.caption')} /></Grid> - file-card
<Grid cols={2}> <FileCard href={t(locale, 'nav.cvHref')} title={t(locale, 'file.cvTitle')} meta={t(locale, 'file.cvMeta')} /> <FileCard href={t(locale, 'file.cvWordHref')} title={t(locale, 'file.cvTitle')} meta={t(locale, 'file.cvWordMeta')} icon="file" /> </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 { cols?: 1 | 2 | 3 | 4; class?: string }Astro.props
Bindings and defaults read from source; these do not add inferred types.
cols = 2class = ''
Slots: default
Source usage
Docs / preview only
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.
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/LayoutDemos.astro
- src/components/Grid.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.