import './Gallery.css'

## Examples

### Basic


import Example1 from './Example1.html?raw'

<LiveExample html={Example1} />

### With gutter


import Example2 from './Example2.html?raw'

<LiveExample html={Example2} />

### Grid template minmax() width customization

Grid template columms min value can be applied to <code>.pf-v6-l-gallery</code>.  Min-width is set inline as `--pf-v6-l-gallery--GridTemplateColumns--min{-on-[breakpoint]}: {width}`.

### Min width modified gallery


import Example3 from './Example3.html?raw'

<LiveExample html={Example3} />

### Max width modified gallery


import Example4 from './Example4.html?raw'

<LiveExample html={Example4} />

### Min width modified gallery, responsive updates


import Example5 from './Example5.html?raw'

<LiveExample html={Example5} />

### Max width modified gallery, responsive updates


import Example6 from './Example6.html?raw'

<LiveExample html={Example6} />

### Min and max width modified gallery, responsive updates


import Example7 from './Example7.html?raw'

<LiveExample html={Example7} />

### List type


import Example8 from './Example8.html?raw'

<LiveExample html={Example8} />

## 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` |  `<div>` |  Initializes a Gallery layout |
| `.pf-v6-l-gallery__item` | `<div>` |  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](/tokens/all-patternfly-tokens). |
| `--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](/tokens/all-patternfly-tokens). |