Skip to main content

Dialog

The Dialog component is a customizable modal dialog for displaying content overlays.

Examples

Basic Dialog

Props

NameDescriptionType
classNameAdditional classes for styling componentsString
asChildAllows using a child component as the triggerBoolean
refForwarded reference to the dialog elementReact.Ref

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, pass className overrides.