ComponentPreview
Zeigt kleine echte Beispiel- oder Kontextaufnahmen links in den Komponenten-Zeilen und benennt fehlende Einzelvorschauen ausdrücklich.
src/components/ds/ComponentPreview.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/components/ds/ComponentIndexPage.astro
- Liest den erzeugten Vorschauindex; keine Komponenten nachbauen und keine Screenshot-Kontexte als isolierte Varianten ausgeben.
- Statische Bilder laden verzögert. Beide Themes folgen der tatsächlichen HTML-Theme-Klasse; in der verlinkten Zeile keine zweite interaktive Fläche erzeugen.
- Interne Helfer und Bausteine ohne sicheren Preview-Einstieg bleiben als solche gekennzeichnet. Details/echte Beispiele über den Zeilenlink öffnen.
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 Props {id:string;locale:'de'|'en';kind?:string}interface Preview {mode:string;label?:string;target?:string|null;imageLight?:string;imageDark?:string;width?:number;height?:number;reason?:string}Astro.props
Bindings and defaults read from source; these do not add inferred types.
idlocalekind
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/library.astro
- src/components/ds/ComponentIndexPage.astro
- src/components/ds/ComponentPreview.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
../../../design-system/previews.json@/components/Zeichen.astro·src/components/Zeichen.astro