Dialog
Bündelt Radix-Dialog mit der gemeinsamen Fensteroberfläche, Titelzeile und optionalem Footer.
src/components/ui/dialog.tsxSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use directly
Entry point: src/components/ui/dialog.tsx
- DialogContent benötigt title und closeLabel; DialogDescription für die inhaltliche Beschreibung verwenden.
- Radix Portal/Focus Trap und Fokus-Rückkehr erhalten; size md/wide und instant sind die vorhandenen Anpassungen.
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.
Dialog(props: React.ComponentProps<typeof DialogPrimitive.Root>)DialogTrigger(props: React.ComponentProps<typeof DialogPrimitive.Trigger>)DialogClose(props: React.ComponentProps<typeof DialogPrimitive.Close>)DialogContent({className, children, title, icon, closeLabel, footer, size = 'md', instant = false, ...props}:
React.ComponentProps<typeof DialogPrimitive.Content> & {title: string; icon?: string; closeLabel: string; footer?: React.ReactNode; size?: 'md' | 'wide'; instant?: boolean})DialogDescription({className, ...props}: React.ComponentProps<typeof DialogPrimitive.Description>)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/islands/CaseNavigation.tsx
- src/components/ui/dialog.tsx
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/PrimitiveDemos.astro
- src/components/islands/DsDialogDemo.tsx
- src/components/ui/dialog.tsx
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/islands/CaseNavigation.tsx
- src/components/ui/dialog.tsx
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/islands/AiRead.tsx:9 import
- src/components/islands/CaseNavigation.tsx:3 import
- src/components/islands/DsDialogDemo.tsx:3 import
- src/components/islands/KeyboardHelp.tsx:3 import
- src/components/islands/LightboxIsland.tsx:6 import
- src/components/islands/PreRead.tsx:4 import
- src/components/site/mix/DecisionObject.tsx:21 import
Dependencies
react@radix-ui/react-dialog./zicon·src/components/ui/zicon.tsx./icon-button·src/components/ui/icon-button.tsx@/lib/utils·src/lib/utils.ts./dialog-recipe·src/components/ui/dialog-recipe.ts