SystemWindow
Gibt einem nativen dialog dieselbe Titel-, Body- und Footerstruktur wie den React-Systemfenstern.
src/components/ui/SystemWindow.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use directly
Entry point: src/components/ui/SystemWindow.astro
- titleId muss pro Instanz eindeutig sein, closeLabel ist Pflicht; öffnende Logik und Fokus-Rückgabe gehören zum Verbraucher.
- Das interne Skript schließt mit dialog.close(); der Verbraucher entscheidet über showModal und Modalität.
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 extends HTMLAttributes<'dialog'>{title:string;titleId:string;closeLabel:string;bodyClass?:string;wide?:boolean}Astro.props
Bindings and defaults read from source; these do not add inferred types.
titletitleIdcloseLabelbodyClass = ''wide = falseclass
Slots: leading · default · footer
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/collectible/index.astro
- src/components/collectible/CollectiblePage.astro
- src/components/secret/SecretRoom.astro
- src/components/ui/SystemWindow.astro
Documentation
- src/pages/design-system/storybook-patterns.astro
- src/components/ui/SystemWindow.astro
Preview
- src/pages/vorschlag/header-context.astro
- src/components/secret/SecretRoom.astro
- src/components/ui/SystemWindow.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/components/CvPreview.astro:2 import
- src/components/secret/SecretBooster.astro:3 import
- src/components/secret/SecretRoom.astro:3 import
- src/components/SimpleExplanation.astro:2 import
src/pages/design-system/storybook-patterns.astro:8importsrc/pages/design-system/storybook-themes.astro:4import
Dependencies
astro/types@/components/Zeichen.astro·src/components/Zeichen.astro./icon-button·src/components/ui/icon-button.tsx./dialog-recipe·src/components/ui/dialog-recipe.ts@/styles/system-window.css·src/styles/system-window.css