Examples
Wrapper dialog examples focused on common confirmation flows. Use the headless dialog page when you need to author the overlay DOM yourself.
Confirmation workflow
Open a dialog, choose an action, and capture the result in local state.
Wrapper destructive confirmation
result: No decision yet
Wrapper deployment dialog
result: No decision yet
Content slot styling
Target the projected body wrapper with [data-slot="dialog-content"] for spacing, surface, and scroll treatment.
Style dialog body through the content slot
Tailwind content slot treatment
Custom dimensions
Set dialog panel width and height through CSS variables on the wrapper host.