Dialog Header
DialogHeader provides a structured header for dialogs with slots for title, subtitle, close button, and optional start or end content.
Preview loads on approachPreview loads on approach
Exact source · dialog-header-showcase
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {Dialog, DialogHeader} from '@astryxdesign/core/Dialog';
import {Layout, LayoutContent, Card} from '@astryxdesign/core/Layout';
import {Text} from '@astryxdesign/core/Text';
export default function DialogHeaderShowcase() {
return (
<Dialog isOpen isInline onOpenChange={() => {}}>
<Layout
header={
<DialogHeader
title="Edit Profile"
subtitle="Update your personal information"
onOpenChange={() => {}}
/>
}
content={
<LayoutContent>
<Card variant="muted">
<Text type="body" color="secondary">
Dialog body content goes here.
</Text>
</Card>
</LayoutContent>
}
/>
</Dialog>
);
}