CaseLab
Bettet eine Live-Komponente neben der Case-Erzählung ein: einen Nachbau aus max.lab oder eine eigene chromlose Embed-Seite der Website (System „max“), mit Titel, Erklärung und Link in die Dokumentation.
src/components/case/CaseLab.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/components/case/CaseBlock.astro
- Lädt nur same-origin /lab/ oder /embed/<id>/ (ds/embeds.ts); die Höhe kommt per postMessage lab:height und wird nur für Frames dieser Seite übernommen, das Theme geht als ?theme= und lab:theme an den Frame.
- Aus max.lab nur Nachbauten; Originalcode von Arbeitgebern gehört nicht in den Lab-Build.
Examples
- case-lab
<CaseBlock block={block} caseId={caseId} locale={locale} />
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
interface Props {b:{label:string;title:string;text:string;system:'compass'|'camelot'|'max';component:string;open?:string;href?:string;frame?:string;meta?:string;matrix?:boolean;stage?:boolean};locale:Locale}Astro.props
Bindings and defaults read from source; these do not add inferred types.
blocale
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
- src/pages/en/work/[id].astro
- src/components/case/CasePage.astro
- src/components/case/CaseBlock.astro
- src/components/case/CaseLab.astro
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/CaseDemos.astro
- src/components/case/CaseBlock.astro
- src/components/case/CaseLab.astro
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/case/CaseBlock.astro
- src/components/case/CaseLab.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
@/i18n·src/i18n/index.ts@/components/Panel.astro·src/components/Panel.astro@/components/PanelHeader.astro·src/components/PanelHeader.astro@/components/Zeichen.astro·src/components/Zeichen.astro./CaseText.astro·src/components/case/CaseText.astro./CaseTip.astro·src/components/case/CaseTip.astro@/styles/tokens/case-lab.css·src/styles/tokens/case-lab.css