Section
This source is documented by the existing examples linked below.
src/components/Section.astroUsage contract
- Panel owns the surface; PanelHeader and PanelFooter own window chrome. Do not nest decorative surfaces.
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>
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
interface Props { id?: string; flush?: boolean; class?: string }Astro.props
Bindings and defaults read from source; these do not add inferred types.
idflush = falseclass = ''
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/Section.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.