LabShell
Rahmt Varianten und optionale Kontexte mit Briefing, Umschaltern, Variantenhinweisen und teilbarer URL-Auswahl ein.
src/components/site/lab/LabShell.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use directly
Entry point: src/components/site/lab/LabShell.astro
- Varianten brauchen eindeutige k-Schlüssel und gleichnamige Slots; Kontexte nutzen data-ctx. URL-Vertrag v, c und all=1 sowie gedrückte Umschaltzustände erhalten. Nur eine Shell je Laborseite; keine privaten Belege für Vergleichsdemos.
Examples
No dedicated demo is assigned. Use the documented entry point and consumers below; this is not evidence of a missing runtime component.
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
interface Variant {k:string;name:string;note:string}interface Props {locale?:'de'|'en';title:string;path:string;brief:string;variants:Variant[];contexts?:{k:string;name:string}[];stage?:'page'|'frame';defaultVariant?:string}Astro.props
Bindings and defaults read from source; these do not add inferred types.
titlepathbriefvariantscontexts = []stage = 'frame'locale = 'de'defaultVariant = chosen??variants[0]?.k
Slots: before · after
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.
Preview
- src/pages/en/vorschlag/finance-scene.astro
- src/components/site/lab/LabShell.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/pages/en/vorschlag/finance-scene.astro:2importsrc/pages/vorschlag/case-breaker-lab.astro:4importsrc/pages/vorschlag/finance-scene.astro:2importsrc/pages/vorschlag/hero-lab.astro:2importsrc/pages/vorschlag/lab-beispiel.astro:3importsrc/pages/vorschlag/nacht-lab.astro:4importsrc/pages/vorschlag/platform-ueberblick-lab.astro:2importsrc/pages/vorschlag/work-cards-lab.astro:2importsrc/pages/vorschlag/work-content-vergleich.astro:2importsrc/pages/vorschlag/work-product-cards-lab.astro:2import
Dependencies
@/components/site/ProposalShell.astro·src/components/site/ProposalShell.astro@/styles/lab-shell.css·src/styles/lab-shell.css@/lib/labs·src/lib/labs.ts