Info alert: Beta featureThis 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 on the
PatternFly forum or via
Slack . To learn more about the process, visit our
about page or our
Beta components page on GitHub.
Examples Keyboard interaction patterns and a11y is implemented in the Tile demos, located in the Demo section .
Props Tile Name Type Default Description title* required string Title of the tile children React.ReactNode Content rendered inside the banner className string Additional classes added to the banner icon React.ReactNode Icon in the tile title isDisabled boolean Flag indicating if the tile is disabled isDisplayLarge boolean Flag indicating if the stacked tile icon is large isSelected boolean Flag indicating if the tile is selected isStacked boolean Flag indicating if the tile header is stacked
CSS variables .pf-c-tile --pf-c-tile--PaddingTop .pf-c-tile --pf-c-tile--PaddingRight --pf-c-tile--PaddingRight
.pf-c-tile --pf-c-tile--PaddingBottom --pf-c-tile--PaddingBottom
.pf-c-tile --pf-c-tile--PaddingLeft .pf-c-tile --pf-c-tile--BackgroundColor --pf-c-tile--BackgroundColor
--pf-global--BackgroundColor--100 $pf-global--BackgroundColor--100 .pf-c-tile --pf-c-tile--Transition .pf-c-tile --pf-c-tile--TranslateY .pf-c-tile --pf-c-tile--before--BorderColor --pf-c-tile--before--BorderColor
--pf-global--BorderColor--100 $pf-global--BorderColor--100 .pf-c-tile --pf-c-tile--before--BorderWidth --pf-c-tile--before--BorderWidth
--pf-global--BorderWidth--sm $pf-global--BorderWidth--sm .pf-c-tile --pf-c-tile--after--Height --pf-c-tile--after--Height
--pf-global--BorderWidth--lg $pf-global--BorderWidth--lg .pf-c-tile --pf-c-tile--after--BackgroundColor .pf-c-tile --pf-c-tile--after--Transition .pf-c-tile --pf-c-tile--after--ScaleY .pf-c-tile --pf-c-tile--after--TranslateY .pf-c-tile --pf-c-tile__icon--MarginRight --pf-c-tile__icon--MarginRight
.pf-c-tile --pf-c-tile__icon--FontSize --pf-c-tile__icon--FontSize
--pf-global--icon--FontSize--md $pf-global--icon--FontSize--md .pf-c-tile --pf-c-tile__icon--Color .pf-c-tile --pf-c-tile__title--Color --pf-c-tile__title--Color
.pf-c-tile --pf-c-tile__body--Color .pf-c-tile --pf-c-tile__body--FontSize --pf-c-tile__body--FontSize
--pf-global--FontSize--xs .pf-c-tile --pf-c-tile--hover--after--BackgroundColor --pf-c-tile--hover--after--BackgroundColor
--pf-global--active-color--400 $pf-global--active-color--400 .pf-c-tile --pf-c-tile--hover__icon--Color --pf-c-tile--hover__icon--Color
--pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile --pf-c-tile--hover__title--Color --pf-c-tile--hover__title--Color
--pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile --pf-c-tile--focus--after--BackgroundColor --pf-c-tile--focus--after--BackgroundColor
--pf-global--active-color--400 $pf-global--active-color--400 .pf-c-tile --pf-c-tile--focus__icon--Color --pf-c-tile--focus__icon--Color
--pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile --pf-c-tile--focus__title--Color --pf-c-tile--focus__title--Color
--pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile --pf-c-tile--m-selected--TranslateY --pf-c-tile--m-selected--TranslateY
calc(-1 * --pf-c-tile--m-selected--after--ScaleY * --pf-c-tile--m-selected--after--Height) calc(-1 * 2 * --pf-global--BorderWidth--lg) calc(-1 * 2 * $pf-global--BorderWidth--lg) .pf-c-tile --pf-c-tile--m-selected--Transition all 250ms cubic-bezier(.42, 0, .58, 1)
--pf-c-tile--m-selected--Transition
all 250ms cubic-bezier(.42, 0, .58, 1) .pf-c-tile --pf-c-tile--m-selected--after--Height --pf-c-tile--m-selected--after--Height
--pf-global--BorderWidth--lg $pf-global--BorderWidth--lg .pf-c-tile --pf-c-tile--m-selected--after--BackgroundColor --pf-c-tile--m-selected--after--BackgroundColor
--pf-global--active-color--100 $pf-global--active-color--100 .pf-c-tile --pf-c-tile--m-selected--after--Transition all 250ms cubic-bezier(.42, 0, .58, 1)
--pf-c-tile--m-selected--after--Transition
all 250ms cubic-bezier(.42, 0, .58, 1) .pf-c-tile --pf-c-tile--m-selected--after--ScaleY .pf-c-tile --pf-c-tile--m-selected__icon--Color --pf-c-tile--m-selected__icon--Color
--pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile --pf-c-tile--m-selected__title--Color --pf-c-tile--m-selected__title--Color
--pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile --pf-c-tile--m-disabled--BackgroundColor --pf-c-tile--m-disabled--BackgroundColor
--pf-global--disabled-color--300 $pf-global--disabled-color--300 .pf-c-tile --pf-c-tile--m-disabled__icon--Color --pf-c-tile--m-disabled__icon--Color
--pf-global--disabled-color--100 $pf-global--disabled-color--100 .pf-c-tile --pf-c-tile--m-disabled__title--Color --pf-c-tile--m-disabled__title--Color
--pf-global--disabled-color--100 $pf-global--disabled-color--100 .pf-c-tile --pf-c-tile--m-disabled__body--Color --pf-c-tile--m-disabled__body--Color
--pf-global--disabled-color--100 $pf-global--disabled-color--100 .pf-c-tile --pf-c-tile__header--m-stacked__icon--MarginBottom --pf-c-tile__header--m-stacked__icon--MarginBottom
.pf-c-tile --pf-c-tile__header--m-stacked__icon--FontSize --pf-c-tile__header--m-stacked__icon--FontSize
--pf-global--icon--FontSize--lg $pf-global--icon--FontSize--lg .pf-c-tile --pf-c-tile--m-display-lg__header--m-stacked__icon--FontSize --pf-c-tile--m-display-lg__header--m-stacked__icon--FontSize
--pf-global--icon--FontSize--xl $pf-global--icon--FontSize--xl .pf-c-tile:hover --pf-c-tile__title--Color --pf-c-tile__title--Color
--pf-c-tile--hover__title--Color --pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile:hover --pf-c-tile__icon--Color --pf-c-tile__icon--Color
--pf-c-tile--hover__icon--Color --pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile:hover --pf-c-tile--after--BackgroundColor --pf-c-tile--after--BackgroundColor
--pf-c-tile--hover--after--BackgroundColor --pf-global--active-color--400 $pf-global--active-color--400 .pf-c-tile:focus --pf-c-tile__title--Color --pf-c-tile__title--Color
--pf-c-tile--focus__title--Color --pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile:focus --pf-c-tile__icon--Color --pf-c-tile__icon--Color
--pf-c-tile--focus__icon--Color --pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile:focus --pf-c-tile--after--BackgroundColor --pf-c-tile--after--BackgroundColor
--pf-c-tile--focus--after--BackgroundColor --pf-global--active-color--400 $pf-global--active-color--400 .pf-c-tile:active --pf-c-tile__title--Color --pf-c-tile__title--Color
--pf-c-tile--m-selected__title--Color --pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile:active --pf-c-tile__icon--Color --pf-c-tile__icon--Color
--pf-c-tile--m-selected__icon--Color --pf-global--primary-color--100 $pf-global--primary-color--100 .pf-c-tile:active --pf-c-tile--TranslateY --pf-c-tile--TranslateY
--pf-c-tile--m-selected--TranslateY calc(-1 * --pf-c-tile--m-selected--after--ScaleY * --pf-c-tile--m-selected--after--Height) calc(-1 * 2 * --pf-global--BorderWidth--lg) calc(-1 * 2 * $pf-global--BorderWidth--lg) .pf-c-tile:active --pf-c-tile--Transition all 250ms cubic-bezier(.42, 0, .58, 1)
--pf-c-tile--Transition
--pf-c-tile--m-selected--Transition all 250ms cubic-bezier(.42, 0, .58, 1) .pf-c-tile:active --pf-c-tile--after--Height --pf-c-tile--after--Height
--pf-c-tile--m-selected--after--Height --pf-global--BorderWidth--lg $pf-global--BorderWidth--lg .pf-c-tile:active --pf-c-tile--after--BackgroundColor --pf-c-tile--after--BackgroundColor
--pf-c-tile--m-selected--after--BackgroundColor --pf-global--active-color--100 $pf-global--active-color--100 .pf-c-tile:active --pf-c-tile--after--Transition all 250ms cubic-bezier(.42, 0, .58, 1)
--pf-c-tile--after--Transition
--pf-c-tile--m-selected--after--Transition all 250ms cubic-bezier(.42, 0, .58, 1) .pf-c-tile:active --pf-c-tile--after--ScaleY --pf-c-tile--after--ScaleY
--pf-c-tile--m-selected--after--ScaleY .pf-c-tile.pf-m-disabled --pf-c-tile--BackgroundColor --pf-c-tile--BackgroundColor
--pf-c-tile--m-disabled--BackgroundColor --pf-global--disabled-color--300 $pf-global--disabled-color--300 .pf-c-tile.pf-m-disabled --pf-c-tile__title--Color --pf-c-tile__title--Color
--pf-c-tile--m-disabled__title--Color --pf-global--disabled-color--100 $pf-global--disabled-color--100 .pf-c-tile.pf-m-disabled --pf-c-tile__body--Color --pf-c-tile__body--Color
--pf-c-tile--m-disabled__body--Color --pf-global--disabled-color--100 $pf-global--disabled-color--100 .pf-c-tile.pf-m-disabled --pf-c-tile--before--BorderWidth .pf-c-tile.pf-m-disabled --pf-c-tile__icon--Color --pf-c-tile__icon--Color
--pf-c-tile--m-disabled__icon--Color --pf-global--disabled-color--100 $pf-global--disabled-color--100 .pf-c-tile.pf-m-display-lg .pf-c-tile__header.pf-m-stacked --pf-c-tile__icon--FontSize --pf-c-tile__icon--FontSize
--pf-c-tile--m-display-lg__header--m-stacked__icon--FontSize --pf-global--icon--FontSize--xl $pf-global--icon--FontSize--xl .pf-c-tile__header.pf-m-stacked --pf-c-tile__icon--MarginRight .pf-c-tile__header.pf-m-stacked --pf-c-tile__icon--FontSize --pf-c-tile__icon--FontSize
--pf-c-tile__header--m-stacked__icon--FontSize --pf-global--icon--FontSize--lg $pf-global--icon--FontSize--lg
View source on GitHub