Debian Codegraph @

node/@patternfly/patternfly/docs/layouts/Level/examples/Level.md

raw
1 ---
2 id: Level
3 section: foundations-and-styles
4 subsection: layouts
5 cssPrefix: pf-v6-l-level
6 ---import './Level.css'
7
8 ## Examples
9
10 ### Two items
11
12 ```html
13 <div class="pf-v6-l-level">
14 <div class="pf-v6-l-level__item">
15 content
16 <br />content
17 <br />content
18 </div>
19 <div class="pf-v6-l-level__item">content</div>
20 </div>
21
22 ```
23
24 ### Three items
25
26 ```html
27 <div class="pf-v6-l-level">
28 <div class="pf-v6-l-level__item">content</div>
29 <div class="pf-v6-l-level__item">
30 content
31 <br />content
32 <br />content
33 </div>
34 <div class="pf-v6-l-level__item">content</div>
35 </div>
36
37 ```
38
39 ### With gutters
40
41 ```html
42 <div class="pf-v6-l-level pf-m-gutter">
43 <div class="pf-v6-l-level__item">content with gutter</div>
44 <div class="pf-v6-l-level__item">content with gutter</div>
45 <div class="pf-v6-l-level__item">
46 content
47 <br />content
48 <br />content
49 </div>
50 </div>
51
52 ```
53
54 ## Documentation
55
56 ### Overview
57
58 The level layout is designed to distribute space between children evenly and center them on the x-axis. By default the children are placed horizontally and wrap responsively.
59
60 ### Usage
61
62 | Class | Applied to | Outcome |
63 | -- | -- | -- |
64 | `.pf-v6-l-level` | `<div>`, `<section>`, or `<article>` | Initializes the level layout |
65 | `.pf-v6-l-level__item` | `<div>` | Explicitly sets a child of the level. 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. |
66 | `.pf-m-gutter` | `.pf-v6-l-level` | Adds space between children by using the globally defined gutter value. |