package.docs.layouts.Gallery.examples.Gallery.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of patternfly Show documentation
Show all versions of patternfly Show documentation
Assets, source, tooling, and content for PatternFly 4
The newest version!
---
id: Gallery
section: layouts
cssPrefix: pf-v6-l-gallery
---import './Gallery.css'
## Examples
### Basic
```html
content
content
content
content
content
```
### With gutter
```html
content
content
content
content
content
```
### Grid template minmax() width customization
Grid template columms min value can be applied to .pf-v6-l-gallery
. Min-width is set inline as `--pf-v6-l-gallery--GridTemplateColumns--min{-on-[breakpoint]}: {width}`.
### Min width modified gallery
```html
content
content
content
content
content
```
### Max width modified gallery
```html
content
content
content
content
content
```
### Min width modified gallery, responsive updates
```html
content
content
content
content
content
```
### Max width modified gallery, responsive updates
```html
content
content
content
content
content
```
### Min and max width modified gallery, responsive updates
```html
content
content
content
content
content
```
### List type
```html
- content
- content
- content
- content
- content
```
## Documentation
### Overview
The gallery layout is designed so that all of its children are of uniform size, display horizontally, and wrap responsively.
### Usage
| Class | Applied to | Outcome |
| -- | -- | -- |
| `.pf-v6-l-gallery` | `` | Initializes a Gallery layout |
| `.pf-v6-l-gallery__item` | `` | Explicitly sets the child for the gallery. This class isn't necessary, but it is included to keep inline with BEM convention, and to provide an entity that will later be used for applying modifiers. |
| `.pf-m-gutter` | `.pf-v6-l-gallery` | Adds space between children by using the globally defined gutter value. |
| `--pf-v6-l-gallery--GridTemplateColumns--min{-on-[breakpoint]}: {width}` | `.pf-v6-l-gallery` | Modifies the min value of `grid-template-columns` declaration at the optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
| `--pf-v6-l-gallery--GridTemplateColumns--max{-on-[breakpoint]}: {width}` | `.pf-v6-l-gallery` | Modifies the max value of `grid-template-columns` declaration at the optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
© 2015 - 2025 Weber Informatics LLC | Privacy Policy