Skip to Content
Patternfly Logo

Gallery

Use a Gallery layout to arrange content in a responsive grid. Content will wrap responsively to create uniform rows and columns.

ExamplesPropsCSS Variables

Examples

Basic

With gutters

Props

Gallery properties
NameTypeRequiredDefaultDescription
childrenReact.ReactNodeNonullcontent rendered inside the Gallery layout
classNamestringNo''additional classes added to the Gallery layout
hasGutterbooleanNoAdds space between children.
GalleryItem properties
NameTypeRequiredDefaultDescription
childrenReact.ReactNodeNonullcontent rendered inside the Gallery Item

CSS Variables

.pf-l-gallery--pf-l-gallery--m-gutter--GridGap
1rem
.pf-l-gallery--pf-l-gallery--GridTemplateColumns
repeat(auto-fill, minmax(250px, 1fr))
.pf-l-gallery--pf-l-gallery--GridTemplateRows
auto