PatternFly

About modal

An about modal displays information about an application like product version number(s), as well as any appropriate legal text.

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-v5-c-about-modal-box--pf-v5-global--Color--100
#fff
.pf-v5-c-about-modal-box--pf-v5-global--Color--200
#f0f0f0
.pf-v5-c-about-modal-box--pf-v5-global--BorderColor--100
#b8bbbe
.pf-v5-c-about-modal-box--pf-v5-global--primary-color--100
#73bcf7
.pf-v5-c-about-modal-box--pf-v5-global--link--Color
#2b9af3
.pf-v5-c-about-modal-box--pf-v5-global--link--Color--hover
#2b9af3
.pf-v5-c-about-modal-box--pf-v5-global--BackgroundColor--100
#151515
.pf-v5-c-about-modal-box--pf-v5-global--icon--Color--light
#f0f0f0
.pf-v5-c-about-modal-box--pf-v5-global--icon--Color--dark
#fff
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--BackgroundImage
none
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--BackgroundColor
#030303
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--BackgroundPosition
bottom right
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--BackgroundSize--min-width
200px
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--BackgroundSize--width
60%
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--BackgroundSize--max-width
600px
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--BackgroundSize
clamp(200px, 60%, 600px)
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--Height
100%
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--lg--Height
47.625rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--Width
100%
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--sm--GridTemplateColumns
5fr 1fr
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--lg--GridTemplateColumns
1fr .6fr
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__brand--PaddingTop
3rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__brand--PaddingRight
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__brand--PaddingLeft
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__brand--PaddingBottom
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__brand--sm--PaddingRight
4rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__brand--sm--PaddingLeft
4rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__brand--sm--PaddingBottom
4rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--ZIndex
600
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--PaddingTop
3rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--PaddingRight
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--PaddingBottom
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--sm--PaddingBottom
4rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--lg--PaddingRight
4rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--c-button--Color
#151515
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--c-button--FontSize
1.25rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--c-button--BorderRadius
30em
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--c-button--Width
calc(1.25rem * 2)
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--c-button--Height
calc(1.25rem * 2)
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--c-button--BackgroundColor
#030303
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__close--c-button--hover--BackgroundColor
rgba(3, 3, 3, 0.4)
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__brand-image--Height
2.5rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__header--PaddingRight
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__header--PaddingBottom
0.5rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__header--PaddingLeft
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__header--sm--PaddingRight
4rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__header--sm--PaddingLeft
4rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__strapline--PaddingTop
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__strapline--FontSize
0.875rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__strapline--sm--PaddingTop
3rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__content--MarginTop
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__content--MarginRight
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__content--MarginBottom
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__content--MarginLeft
2rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__content--sm--MarginTop
3rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__content--sm--MarginRight
4rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__content--sm--MarginBottom
3rem
.pf-v5-c-about-modal-box--pf-v5-c-about-modal-box__content--sm--MarginLeft
4rem
.pf-v5-c-about-modal-box .pf-v5-c-button--pf-v5-c-button--m-primary--BackgroundColor
#06c
:where(.pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-about-modal-box--pf-v5-c-about-modal-box--BackgroundPosition
bottom left
.pf-v5-c-about-modal-box__close .pf-v5-c-button.pf-m-plain:hover--pf-v5-c-about-modal-box__close--c-button--BackgroundColor
rgba(3, 3, 3, 0.4)

View source on GitHub