Debian Codegraph @

node/@patternfly/patternfly/docs/utilities/Display/examples/Display.md

raw
1 ---
2 id: Display
3 section: foundations-and-styles
4 subsection: utility-classes
5 ---import './Display.css'
6
7 ## Examples
8
9 ### Inline
10
11 ```html
12 <div class="pf-v6-u-display-inline">.pf-v6-u-display-inline</div>
13
14 ```
15
16 ### Block
17
18 ```html
19 <div class="pf-v6-u-display-block">.pf-v6-u-display-block</div>
20
21 ```
22
23 ### Inline block
24
25 ```html
26 <div class="pf-v6-u-display-inline-block">.pf-v6-u-display-inline-block</div>
27
28 ```
29
30 ### Flex
31
32 ```html
33 <div class="pf-v6-u-display-flex">.pf-v6-u-display-flex</div>
34
35 ```
36
37 ### Inline flex
38
39 ```html
40 <div class="pf-v6-u-display-inline-flex">.pf-v6-u-display-inline-flex</div>
41
42 ```
43
44 ### Grid
45
46 ```html
47 <div class="pf-v6-u-display-grid">.pf-v6-u-display-grid</div>
48
49 ```
50
51 ### Inline grid
52
53 ```html
54 <div class="pf-v6-u-display-inline-grid">.pf-v6-u-display-inline-grid</div>
55
56 ```
57
58 ### Table, table row, table cell
59
60 ```html
61 <div class="pf-v6-u-display-table">
62 <div class="pf-v6-u-display-table-row">
63 <div class="pf-v6-u-display-table-cell">table-cell</div>
64 <div class="pf-v6-u-display-table-cell">table-cell</div>
65 <div class="pf-v6-u-display-table-cell">table-cell</div>
66 </div>
67 <div class="pf-v6-u-display-table-row">
68 <div class="pf-v6-u-display-table-cell">table-cell</div>
69 <div class="pf-v6-u-display-table-cell">table-cell</div>
70 <div class="pf-v6-u-display-table-cell">table-cell</div>
71 </div>
72 </div>
73
74 ```
75
76 ### None
77
78 ```html
79 <div class="pf-v6-u-display-none-on-sm">Hidden on sm breakpoint</div>
80
81 ```
82
83 ## Documentation
84
85 ### Overview
86
87 [Breakpoints](/foundations-and-styles/design-tokens/all-design-tokens) are optional. Breakpoint options include: base (no breakpoint value), `-on-sm`, `-on-md`, `-on-lg`, and `-on-xl`. Example: `.pf-v6-u-display-inline-block-on-lg`
88
89 ### Usage
90
91 | Class | Applied to | Outcome |
92 | -- | -- | -- |
93 | `.pf-v6-u-display-inline{-on-[breakpoint]}` | `*` | Sets display: inline |
94 | `.pf-v6-u-display-block{-on-[breakpoint]}` | `*` | Sets display: block |
95 | `.pf-v6-u-display-inline-block{-on-[breakpoint]}` | `*` | Sets display: inline-block |
96 | `.pf-v6-u-display-flex{-on-[breakpoint]}` | `*` | Sets display: flex |
97 | `.pf-v6-u-display-inline-flex{-on-[breakpoint]}` | `*` | Sets display: inline-flex |
98 | `.pf-v6-u-display-grid{-on-[breakpoint]}` | `*` | Sets display: grid |
99 | `.pf-v6-u-display-inline-grid{-on-[breakpoint]}` | `*` | Sets display: inline-grid |
100 | `.pf-v6-u-display-table{-on-[breakpoint]}` | `*` | Sets display: table |
101 | `.pf-v6-u-display-table-row{-on-[breakpoint]}` | `*` | Sets display: table-row |
102 | `.pf-v6-u-display-table-cell{-on-[breakpoint]}` | `*` | Sets display: table-cell |
103 | `.pf-v6-u-display-none{-on-[breakpoint]}` | `*` | Sets display: none |