Options
The Dialog supports a primary action, an optional secondary action, and a danger variant for destructive confirmations.Actions
OmitsecondaryAction for a single-action, acknowledge-only dialog — the lone action sits at the trailing edge of the footer. Pass both for a confirm/cancel pair, as in the hero example above.
Action Variants
Primary Action
primaryAction defaults to variant: "primary", rendering the standard confirm treatment.
Danger Action
SetprimaryAction’s variant to "danger" for a destructive confirmation — it renders the critical (red) Button so the risk of the action is visually distinct.
No Actions
Omit bothprimaryAction and secondaryAction for a footerless dialog — useful for a media preview or informational dialog where the header’s X close button is the only dismiss affordance.