Hero

Info alert:Beta feature

This beta component is currently under review and is still open for further evolution. It is available for use in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions via Slack. To learn more about the process, visit our about page or our Beta components page on GitHub.

Examples

Basic

Basic hero content

Documentation

Usage

Class
Applied to
Outcome
.pf-v6-c-hero
<div>
Initiates the hero. Required
.pf-v6-c-hero__body
<div>
Initiates the hero body.
.pf-m-glass
.pf-v6-c-hero
Applies glass styles when glass theme is enabled.

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v6-c-hero--pf-v6-c-hero--PaddingBlockStart
4rem
.pf-v6-c-hero--pf-v6-c-hero--PaddingBlockEnd
4rem
.pf-v6-c-hero--pf-v6-c-hero--PaddingInlineStart
4rem
.pf-v6-c-hero--pf-v6-c-hero--PaddingInlineEnd
4rem
.pf-v6-c-hero--pf-v6-c-hero--gradient--angle
109deg
.pf-v6-c-hero--pf-v6-c-hero--gradient--stop-1--light
transparent
.pf-v6-c-hero--pf-v6-c-hero--gradient--stop-2--light
transparent
.pf-v6-c-hero--pf-v6-c-hero--gradient--stop-3--light
transparent
.pf-v6-c-hero--pf-v6-c-hero--gradient--stop-1--dark
transparent
.pf-v6-c-hero--pf-v6-c-hero--gradient--stop-2--dark
transparent
.pf-v6-c-hero--pf-v6-c-hero--gradient--stop-3--dark
transparent
.pf-v6-c-hero--pf-v6-c-hero--BackgroundColor
(In light theme) rgba(199, 199, 199, 0.2500)
.pf-v6-c-hero--pf-v6-c-hero--BackgroundImage--light
none
.pf-v6-c-hero--pf-v6-c-hero--BackgroundImage--dark
none
.pf-v6-c-hero--pf-v6-c-hero--BackgroundRepeat
no-repeat
.pf-v6-c-hero--pf-v6-c-hero--BackgroundPosition
right center
.pf-v6-c-hero--pf-v6-c-hero--BackgroundSize
contain
.pf-v6-c-hero--pf-v6-c-hero--BorderStyle
solid
.pf-v6-c-hero--pf-v6-c-hero--BorderBlockStartWidth
1px
.pf-v6-c-hero--pf-v6-c-hero--BorderBlockEndWidth
1px
.pf-v6-c-hero--pf-v6-c-hero--BorderInlineStartWidth
1px
.pf-v6-c-hero--pf-v6-c-hero--BorderInlineEndWidth
1px
.pf-v6-c-hero--pf-v6-c-hero--BorderColor
(In light theme) #e0e0e0
.pf-v6-c-hero--pf-v6-c-hero--BorderStartStartRadius
16px
.pf-v6-c-hero--pf-v6-c-hero--BorderStartEndRadius
48px
.pf-v6-c-hero--pf-v6-c-hero--BorderEndEndRadius
16px
.pf-v6-c-hero--pf-v6-c-hero--BorderEndStartRadius
48px
.pf-v6-c-hero--pf-v6-c-hero__body--Width
800px
.pf-v6-c-hero--pf-v6-c-hero__body--MaxWidth
80%
.pf-v6-c-hero--pf-v6-c-hero--m-glass--BackgroundColor
initial
.pf-v6-c-hero--pf-v6-c-hero--m-glass--BackdropFilter
initial
.pf-v6-c-hero--pf-v6-c-hero--m-glass--BorderColor
initial
.pf-v6-c-hero--pf-v6-c-hero--m-glass--BoxShadow
0px 4px 10px 0px rgba(41, 41, 41, 0.1500)
:where(.pf-v6-theme-glass) .pf-v6-c-hero.pf-m-glass--pf-v6-c-hero--BorderColor
initial
:where(.pf-v6-theme-glass) .pf-v6-c-hero.pf-m-glass--pf-v6-c-hero--BackgroundColor
initial