About modal

Examples

Basic

Without product name

Complex user positioned content

Props

AboutModal

*required
NameTypeDefaultDescription
brandImageAltrequiredstringThe alternate text of the brand image
brandImageSrcrequiredstringThe URL of the image for the brand
childrenrequiredReact.ReactNodeContent rendered inside the about modal
appendToHTMLElement | (() => HTMLElement)The parent container to append the modal to. Defaults to document.body
aria-labelstringAria label for the about modal. This should be used when no productName prop is provided
backgroundImageSrcstringThe URL or file path of the image for the background
classNamestringAdditional classes added to the about modal
closeButtonAriaLabelstringSet aria label to the close button
disableFocusTrapbooleanFlag to disable focus trap
hasNoContentContainerbooleanfalsePrevents the about modal from rendering content inside a container; allows for more flexible layouts
isOpenbooleanfalseFlag to show the about modal
onClose(event: React.MouseEvent | MouseEvent | KeyboardEvent) => void(_e): any => undefinedA callback for when the close button is clicked
productNamestringProduct name
trademarkstringTrademark information

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--BackgroundImage
none
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--BackgroundSize--min-width
200px
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--BackgroundSize--width
60%
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--BackgroundSize--max-width
600px
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--BackgroundSize
clamp(200px, 60%, 600px)
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--Height
100%
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--lg--Height
47.625rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--Width
100%
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--sm--GridTemplateColumns
5fr 1fr
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--lg--GridTemplateColumns
1fr .6fr
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__brand--PaddingBlockStart
3rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__brand--PaddingInlineEnd
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__brand--PaddingInlineStart
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__brand--PaddingBlockEnd
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__brand--sm--PaddingInlineEnd
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__brand--sm--PaddingInlineStart
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__brand--sm--PaddingBlockEnd
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__close--ZIndex
600
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__close--PaddingBlockStart
3rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__close--PaddingInlineEnd
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__close--PaddingBlockEnd
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__close--sm--PaddingBlockEnd
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__close--lg--PaddingInlineEnd
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__close--c-button--FontSize
1rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__brand-image--Height
2.3125rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__header--PaddingInlineEnd
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__header--PaddingBlockEnd
0.5rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__header--PaddingInlineStart
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__header--sm--PaddingInlineEnd
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__header--sm--PaddingInlineStart
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__strapline--PaddingBlockStart
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__strapline--FontSize
0.75rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__strapline--Color
(In light theme) #4d4d4d
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__strapline--sm--PaddingBlockStart
3rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__content--MarginBlockStart
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__content--MarginInlineEnd
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__content--MarginBlockEnd
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__content--MarginInlineStart
2rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__content--sm--MarginBlockStart
3rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__content--sm--MarginInlineEnd
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__content--sm--MarginBlockEnd
3rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box__content--sm--MarginInlineStart
4rem
.pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--BackgroundPosition
bottom right
:where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-about-modal-box--pf-v6-c-about-modal-box--BackgroundPosition
bottom left