Skip to main content

Modal

The Modal component is designed to display content overlaying the main application interface. It supports dynamically loading content and can include both media assets and block content.

Example

Variants

Use theicon above to preview
FieldDescriptionValues
headerThe main header text displayed at the top of the modal.String
subcopyOptional subheading or description text below the header.String
headerPositionDefines the alignment of the header.
  • left
  • right
  • center
subcopyPositionDefines the alignment of the subcopy.
  • left
  • right
  • center
backgroundColorThe color of the background.String
textColorThe color of the text.String
mediaAssetsArray of media assets (images, videos) displayed in a responsive grid layout within the modal.Array of media objects
contentIdsArray of content IDs for lazy loading additional dynamic content within the modal.Array of strings
Use theicon above to preview different text alignments and layouts.

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. Class overrides can be applied to all sub-components.