Debian Codegraph @

node/@patternfly/patternfly/docs/components/Card/examples/Card.md

raw
1 ---
2 id: Card
3 section: components
4 cssPrefix: pf-v6-c-card
5 ---import './Card.css'
6
7 ## Examples
8
9 ### Basic
10
11 ```html
12 <div class="pf-v6-c-card" id="card-basic-example">
13 <div class="pf-v6-c-card__title">
14 <h2 class="pf-v6-c-card__title-text">Title</h2>
15 </div>
16 <div class="pf-v6-c-card__body">Body</div>
17 <div class="pf-v6-c-card__footer">Footer</div>
18 </div>
19
20 ```
21
22 ### With image and action
23
24 ```html
25 <div class="pf-v6-c-card" id="card-action-example-1">
26 <div class="pf-v6-c-card__header">
27 <div class="pf-v6-c-card__header-main">
28 <svg height="70px" viewBox="0 0 679 158">
29 <title>PatternFly</title>
30 <defs>
31 <linearGradient
32 x1="68%"
33 y1="2.25860997e-13%"
34 x2="32%"
35 y2="100%"
36 id="linearGradient-card-action-example-1"
37 >
38 <stop stop-color="#2B9AF3" offset="0%" />
39 <stop
40 stop-color="#73BCF7"
41 stop-opacity="0.502212631"
42 offset="100%"
43 />
44 </linearGradient>
45 </defs>
46 <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
47 <g
48 transform="translate(206.000000, 45.750000)"
49 fill="var(--pf-t--global--text--color--regular)"
50 fill-rule="nonzero"
51 >
52 <path
53 d="M0,65.25 L0,2.25 L33.21,2.25 C37.35,2.25 41.025,3.135 44.235,4.905 C47.445,6.675 49.98,9.09 51.84,12.15 C53.7,15.21 54.63,18.72 54.63,22.68 C54.63,26.46 53.7,29.865 51.84,32.895 C49.98,35.925 47.43,38.31 44.19,40.05 C40.95,41.79 37.29,42.66 33.21,42.66 L15.48,42.66 L15.48,65.25 L0,65.25 Z M15.48,29.88 L31.41,29.88 C33.69,29.88 35.52,29.22 36.9,27.9 C38.28,26.58 38.97,24.87 38.97,22.77 C38.97,20.61 38.28,18.855 36.9,17.505 C35.52,16.155 33.69,15.48 31.41,15.48 L15.48,15.48 L15.48,29.88 Z"
54 />
55 <path
56 d="M77.04,66.06 C73.68,66.06 70.695,65.43 68.085,64.17 C65.475,62.91 63.435,61.17 61.965,58.95 C60.495,56.73 59.76,54.18 59.76,51.3 C59.76,46.74 61.485,43.215 64.935,40.725 C68.385,38.235 73.2,36.99 79.38,36.99 C83.1,36.99 86.7,37.44 90.18,38.34 L90.18,36 C90.18,31.26 87.15,28.89 81.09,28.89 C77.49,28.89 72.69,30.15 66.69,32.67 L61.47,21.96 C69.15,18.48 76.56,16.74 83.7,16.74 C90.3,16.74 95.43,18.315 99.09,21.465 C102.75,24.615 104.58,29.04 104.58,34.74 L104.58,65.25 L90.18,65.25 L90.18,62.37 C88.26,63.69 86.235,64.635 84.105,65.205 C81.975,65.775 79.62,66.06 77.04,66.06 Z M73.62,51.03 C73.62,52.53 74.28,53.7 75.6,54.54 C76.92,55.38 78.75,55.8 81.09,55.8 C84.69,55.8 87.72,55.05 90.18,53.55 L90.18,47.43 C87.42,46.71 84.54,46.35 81.54,46.35 C79.02,46.35 77.07,46.755 75.69,47.565 C74.31,48.375 73.62,49.53 73.62,51.03 Z"
57 />
58 <path
59 d="M137.25,65.88 C125.73,65.88 119.97,60.84 119.97,50.76 L119.97,29.79 L110.34,29.79 L110.34,17.64 L119.97,17.64 L119.97,5.4 L134.55,2.25 L134.55,17.64 L147.87,17.64 L147.87,29.79 L134.55,29.79 L134.55,47.88 C134.55,49.98 135.015,51.465 135.945,52.335 C136.875,53.205 138.51,53.64 140.85,53.64 C143.01,53.64 145.2,53.31 147.42,52.65 L147.42,64.44 C146.1,64.86 144.42,65.205 142.38,65.475 C140.34,65.745 138.63,65.88 137.25,65.88 Z"
60 />
61 <path
62 d="M177.57,65.88 C166.05,65.88 160.29,60.84 160.29,50.76 L160.29,29.79 L150.66,29.79 L150.66,17.64 L160.29,17.64 L160.29,5.4 L174.87,2.25 L174.87,17.64 L188.19,17.64 L188.19,29.79 L174.87,29.79 L174.87,47.88 C174.87,49.98 175.335,51.465 176.265,52.335 C177.195,53.205 178.83,53.64 181.17,53.64 C183.33,53.64 185.52,53.31 187.74,52.65 L187.74,64.44 C186.42,64.86 184.74,65.205 182.7,65.475 C180.66,65.745 178.95,65.88 177.57,65.88 Z"
63 />
64 <path
65 d="M217.62,66.15 C212.76,66.15 208.365,65.055 204.435,62.865 C200.505,60.675 197.4,57.72 195.12,54 C192.84,50.28 191.7,46.11 191.7,41.49 C191.7,36.87 192.795,32.7 194.985,28.98 C197.175,25.26 200.16,22.305 203.94,20.115 C207.72,17.925 211.92,16.83 216.54,16.83 C221.22,16.83 225.36,17.955 228.96,20.205 C232.56,22.455 235.395,25.53 237.465,29.43 C239.535,33.33 240.57,37.8 240.57,42.84 L240.57,46.44 L206.64,46.44 C207.6,48.66 209.1,50.475 211.14,51.885 C213.18,53.295 215.58,54 218.34,54 C222.42,54 225.6,52.8 227.88,50.4 L237.51,58.95 C234.51,61.47 231.435,63.3 228.285,64.44 C225.135,65.58 221.58,66.15 217.62,66.15 Z M206.37,36.27 L226.26,36.27 C225.48,33.99 224.205,32.16 222.435,30.78 C220.665,29.4 218.61,28.71 216.27,28.71 C213.87,28.71 211.8,29.37 210.06,30.69 C208.32,32.01 207.09,33.87 206.37,36.27 Z"
66 />
67 <path
68 d="M247.41,65.25 L247.41,17.64 L261.99,17.64 L261.99,22.41 C265.23,18.51 269.4,16.56 274.5,16.56 C277.08,16.62 278.91,17.01 279.99,17.73 L279.99,30.42 C277.95,29.46 275.64,28.98 273.06,28.98 C270.78,28.98 268.665,29.505 266.715,30.555 C264.765,31.605 263.19,33.09 261.99,35.01 L261.99,65.25 L247.41,65.25 Z"
69 />
70 <path
71 d="M286.29,65.25 L286.29,17.64 L300.87,17.64 L300.87,20.88 C304.47,18.12 308.73,16.74 313.65,16.74 C317.37,16.74 320.655,17.55 323.505,19.17 C326.355,20.79 328.59,23.04 330.21,25.92 C331.83,28.8 332.64,32.13 332.64,35.91 L332.64,65.25 L318.06,65.25 L318.06,37.89 C318.06,35.25 317.28,33.15 315.72,31.59 C314.16,30.03 312.06,29.25 309.42,29.25 C305.76,29.25 302.91,30.51 300.87,33.03 L300.87,65.25 L286.29,65.25 Z"
72 />
73 <polygon
74 points="342 65.25 342 2.25 392.04 2.25 392.04 15.66 357.48 15.66 357.48 27.45 380.52 27.45 380.52 40.41 357.48 40.41 357.48 65.25"
75 />
76 <polygon points="399.96 65.25 399.96 2.25 414.54 0 414.54 65.25" />
77 <path
78 d="M429.21,84.69 C428.07,84.69 426.96,84.645 425.88,84.555 C424.8,84.465 423.9,84.33 423.18,84.15 L423.18,71.73 C424.38,71.97 425.88,72.09 427.68,72.09 C432.36,72.09 435.51,70.05 437.13,65.97 L437.13,65.88 L418.86,17.64 L434.97,17.64 L445.5,47.61 L457.74,17.64 L473.49,17.64 L452.16,67.68 C450.42,71.82 448.5,75.135 446.4,77.625 C444.3,80.115 441.87,81.915 439.11,83.025 C436.35,84.135 433.05,84.69 429.21,84.69 Z"
79 />
80 </g>
81 <g transform="translate(0.000000, 0.000000)">
82 <path
83 d="M61.826087,0 L158,0 L158,96.173913 L147.695652,96.173913 C100.271201,96.173913 61.826087,57.7287992 61.826087,10.3043478 L61.826087,0 L61.826087,0 Z"
84 fill="#0066CC"
85 />
86 <path
87 d="M158,3.43478261 L65.2608696,158 L138,158 C149.045695,158 158,149.045695 158,138 L158,3.43478261 L158,3.43478261 Z"
88 fill="url(#linearGradient-card-action-example-1)"
89 />
90 <path
91 d="M123.652174,-30.9130435 L30.9130435,123.652174 L103.652174,123.652174 C114.697869,123.652174 123.652174,114.697869 123.652174,103.652174 L123.652174,-30.9130435 L123.652174,-30.9130435 Z"
92 fill="url(#linearGradient-card-action-example-1)"
93 transform="translate(77.282609, 46.369565) scale(1, -1) rotate(90.000000) translate(-77.282609, -46.369565) "
94 />
95 </g>
96 </g>
97 </svg>
98 </div>
99 <div class="pf-v6-c-card__actions">
100 <button
101 class="pf-v6-c-menu-toggle pf-m-plain"
102 type="button"
103 aria-expanded="false"
104 aria-label="Card menu toggle"
105 id="card-action-example-1-menu-toggle-kebab"
106 >
107 <span class="pf-v6-c-menu-toggle__icon">
108 <svg
109 class="pf-v6-svg"
110 fill="currentColor"
111 viewBox="0 0 32 32"
112 aria-hidden="true"
113 role="img"
114 width="1em"
115 height="1em"
116 >
117 <path
118 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
119 />
120 </svg>
121 </span>
122 </button>
123 <div class="pf-v6-c-check pf-m-standalone">
124 <input
125 class="pf-v6-c-check__input"
126 type="checkbox"
127 aria-label="Standalone check"
128 id="card-action-example-1-check"
129 name="card-action-example-1-check"
130 aria-labelledby="card-action-example-1"
131 />
132 </div>
133 </div>
134 </div>
135 <div class="pf-v6-c-card__title">
136 <h2
137 class="pf-v6-c-card__title-text"
138 id="card-action-example-1-check-label"
139 >Title</h2>
140 </div>
141 <div class="pf-v6-c-card__body">Body</div>
142 <div class="pf-v6-c-card__footer">Footer</div>
143 </div>
144
145 ```
146
147 ### With title in head
148
149 ```html
150 <div class="pf-v6-c-card" id="card-action-example-2">
151 <div class="pf-v6-c-card__header">
152 <div class="pf-v6-c-card__actions">
153 <button
154 class="pf-v6-c-menu-toggle pf-m-plain"
155 type="button"
156 aria-expanded="false"
157 aria-label="Card menu toggle"
158 id="card-action-example-2-menu-toggle-kebab"
159 >
160 <span class="pf-v6-c-menu-toggle__icon">
161 <svg
162 class="pf-v6-svg"
163 fill="currentColor"
164 viewBox="0 0 32 32"
165 aria-hidden="true"
166 role="img"
167 width="1em"
168 height="1em"
169 >
170 <path
171 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
172 />
173 </svg>
174 </span>
175 </button>
176 <div class="pf-v6-c-check pf-m-standalone">
177 <input
178 class="pf-v6-c-check__input"
179 type="checkbox"
180 aria-label="Standalone check"
181 id="card-action-example-2-check"
182 name="card-action-example-2-check"
183 aria-labelledby="card-action-example-2"
184 />
185 </div>
186 </div>
187 <div class="pf-v6-c-card__header-main">
188 <div class="pf-v6-c-card__title">
189 <h2
190 class="pf-v6-c-card__title-text"
191 id="card-action-example-2-check-label"
192 >This is a really really really really really really really really really really long title</h2>
193 </div>
194 </div>
195 </div>
196 <div class="pf-v6-c-card__body">Body</div>
197 <div class="pf-v6-c-card__footer">Footer</div>
198 </div>
199
200 ```
201
202 ### With subtitle
203
204 ```html isBeta
205 <div class="pf-v6-c-card" id="card-subtitle">
206 <div class="pf-v6-c-card__header">
207 <div class="pf-v6-c-card__actions">
208 <button
209 class="pf-v6-c-menu-toggle pf-m-plain"
210 type="button"
211 aria-expanded="false"
212 aria-label="Card menu toggle"
213 id="card-subtitle-menu-toggle-kebab"
214 >
215 <span class="pf-v6-c-menu-toggle__icon">
216 <svg
217 class="pf-v6-svg"
218 fill="currentColor"
219 viewBox="0 0 32 32"
220 aria-hidden="true"
221 role="img"
222 width="1em"
223 height="1em"
224 >
225 <path
226 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
227 />
228 </svg>
229 </span>
230 </button>
231 <div class="pf-v6-c-check pf-m-standalone">
232 <input
233 class="pf-v6-c-check__input"
234 type="checkbox"
235 aria-label="Standalone check"
236 id="card-subtitle-check"
237 name="card-subtitle-check"
238 aria-labelledby="card-subtitle"
239 />
240 </div>
241 </div>
242 <div class="pf-v6-c-card__header-main">
243 <div class="pf-v6-c-card__title">
244 <h2
245 class="pf-v6-c-card__title-text"
246 id="card-subtitle-check-label"
247 >This is a really really really really really really really really really really long title</h2>
248 <div class="pf-v6-c-card__subtitle">This is a card subtitle.</div>
249 </div>
250 </div>
251 </div>
252 <div class="pf-v6-c-card__body">Body</div>
253 <div class="pf-v6-c-card__footer">Footer</div>
254 </div>
255 <br />
256 <div class="pf-v6-c-card" id="card-image-action-subtitle">
257 <div class="pf-v6-c-card__header">
258 <div class="pf-v6-c-card__header-main">
259 <svg height="70px" viewBox="0 0 679 158">
260 <title>PatternFly</title>
261 <defs>
262 <linearGradient
263 x1="68%"
264 y1="2.25860997e-13%"
265 x2="32%"
266 y2="100%"
267 id="linearGradient-card-image-action-subtitle"
268 >
269 <stop stop-color="#2B9AF3" offset="0%" />
270 <stop
271 stop-color="#73BCF7"
272 stop-opacity="0.502212631"
273 offset="100%"
274 />
275 </linearGradient>
276 </defs>
277 <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
278 <g
279 transform="translate(206.000000, 45.750000)"
280 fill="var(--pf-t--global--text--color--regular)"
281 fill-rule="nonzero"
282 >
283 <path
284 d="M0,65.25 L0,2.25 L33.21,2.25 C37.35,2.25 41.025,3.135 44.235,4.905 C47.445,6.675 49.98,9.09 51.84,12.15 C53.7,15.21 54.63,18.72 54.63,22.68 C54.63,26.46 53.7,29.865 51.84,32.895 C49.98,35.925 47.43,38.31 44.19,40.05 C40.95,41.79 37.29,42.66 33.21,42.66 L15.48,42.66 L15.48,65.25 L0,65.25 Z M15.48,29.88 L31.41,29.88 C33.69,29.88 35.52,29.22 36.9,27.9 C38.28,26.58 38.97,24.87 38.97,22.77 C38.97,20.61 38.28,18.855 36.9,17.505 C35.52,16.155 33.69,15.48 31.41,15.48 L15.48,15.48 L15.48,29.88 Z"
285 />
286 <path
287 d="M77.04,66.06 C73.68,66.06 70.695,65.43 68.085,64.17 C65.475,62.91 63.435,61.17 61.965,58.95 C60.495,56.73 59.76,54.18 59.76,51.3 C59.76,46.74 61.485,43.215 64.935,40.725 C68.385,38.235 73.2,36.99 79.38,36.99 C83.1,36.99 86.7,37.44 90.18,38.34 L90.18,36 C90.18,31.26 87.15,28.89 81.09,28.89 C77.49,28.89 72.69,30.15 66.69,32.67 L61.47,21.96 C69.15,18.48 76.56,16.74 83.7,16.74 C90.3,16.74 95.43,18.315 99.09,21.465 C102.75,24.615 104.58,29.04 104.58,34.74 L104.58,65.25 L90.18,65.25 L90.18,62.37 C88.26,63.69 86.235,64.635 84.105,65.205 C81.975,65.775 79.62,66.06 77.04,66.06 Z M73.62,51.03 C73.62,52.53 74.28,53.7 75.6,54.54 C76.92,55.38 78.75,55.8 81.09,55.8 C84.69,55.8 87.72,55.05 90.18,53.55 L90.18,47.43 C87.42,46.71 84.54,46.35 81.54,46.35 C79.02,46.35 77.07,46.755 75.69,47.565 C74.31,48.375 73.62,49.53 73.62,51.03 Z"
288 />
289 <path
290 d="M137.25,65.88 C125.73,65.88 119.97,60.84 119.97,50.76 L119.97,29.79 L110.34,29.79 L110.34,17.64 L119.97,17.64 L119.97,5.4 L134.55,2.25 L134.55,17.64 L147.87,17.64 L147.87,29.79 L134.55,29.79 L134.55,47.88 C134.55,49.98 135.015,51.465 135.945,52.335 C136.875,53.205 138.51,53.64 140.85,53.64 C143.01,53.64 145.2,53.31 147.42,52.65 L147.42,64.44 C146.1,64.86 144.42,65.205 142.38,65.475 C140.34,65.745 138.63,65.88 137.25,65.88 Z"
291 />
292 <path
293 d="M177.57,65.88 C166.05,65.88 160.29,60.84 160.29,50.76 L160.29,29.79 L150.66,29.79 L150.66,17.64 L160.29,17.64 L160.29,5.4 L174.87,2.25 L174.87,17.64 L188.19,17.64 L188.19,29.79 L174.87,29.79 L174.87,47.88 C174.87,49.98 175.335,51.465 176.265,52.335 C177.195,53.205 178.83,53.64 181.17,53.64 C183.33,53.64 185.52,53.31 187.74,52.65 L187.74,64.44 C186.42,64.86 184.74,65.205 182.7,65.475 C180.66,65.745 178.95,65.88 177.57,65.88 Z"
294 />
295 <path
296 d="M217.62,66.15 C212.76,66.15 208.365,65.055 204.435,62.865 C200.505,60.675 197.4,57.72 195.12,54 C192.84,50.28 191.7,46.11 191.7,41.49 C191.7,36.87 192.795,32.7 194.985,28.98 C197.175,25.26 200.16,22.305 203.94,20.115 C207.72,17.925 211.92,16.83 216.54,16.83 C221.22,16.83 225.36,17.955 228.96,20.205 C232.56,22.455 235.395,25.53 237.465,29.43 C239.535,33.33 240.57,37.8 240.57,42.84 L240.57,46.44 L206.64,46.44 C207.6,48.66 209.1,50.475 211.14,51.885 C213.18,53.295 215.58,54 218.34,54 C222.42,54 225.6,52.8 227.88,50.4 L237.51,58.95 C234.51,61.47 231.435,63.3 228.285,64.44 C225.135,65.58 221.58,66.15 217.62,66.15 Z M206.37,36.27 L226.26,36.27 C225.48,33.99 224.205,32.16 222.435,30.78 C220.665,29.4 218.61,28.71 216.27,28.71 C213.87,28.71 211.8,29.37 210.06,30.69 C208.32,32.01 207.09,33.87 206.37,36.27 Z"
297 />
298 <path
299 d="M247.41,65.25 L247.41,17.64 L261.99,17.64 L261.99,22.41 C265.23,18.51 269.4,16.56 274.5,16.56 C277.08,16.62 278.91,17.01 279.99,17.73 L279.99,30.42 C277.95,29.46 275.64,28.98 273.06,28.98 C270.78,28.98 268.665,29.505 266.715,30.555 C264.765,31.605 263.19,33.09 261.99,35.01 L261.99,65.25 L247.41,65.25 Z"
300 />
301 <path
302 d="M286.29,65.25 L286.29,17.64 L300.87,17.64 L300.87,20.88 C304.47,18.12 308.73,16.74 313.65,16.74 C317.37,16.74 320.655,17.55 323.505,19.17 C326.355,20.79 328.59,23.04 330.21,25.92 C331.83,28.8 332.64,32.13 332.64,35.91 L332.64,65.25 L318.06,65.25 L318.06,37.89 C318.06,35.25 317.28,33.15 315.72,31.59 C314.16,30.03 312.06,29.25 309.42,29.25 C305.76,29.25 302.91,30.51 300.87,33.03 L300.87,65.25 L286.29,65.25 Z"
303 />
304 <polygon
305 points="342 65.25 342 2.25 392.04 2.25 392.04 15.66 357.48 15.66 357.48 27.45 380.52 27.45 380.52 40.41 357.48 40.41 357.48 65.25"
306 />
307 <polygon points="399.96 65.25 399.96 2.25 414.54 0 414.54 65.25" />
308 <path
309 d="M429.21,84.69 C428.07,84.69 426.96,84.645 425.88,84.555 C424.8,84.465 423.9,84.33 423.18,84.15 L423.18,71.73 C424.38,71.97 425.88,72.09 427.68,72.09 C432.36,72.09 435.51,70.05 437.13,65.97 L437.13,65.88 L418.86,17.64 L434.97,17.64 L445.5,47.61 L457.74,17.64 L473.49,17.64 L452.16,67.68 C450.42,71.82 448.5,75.135 446.4,77.625 C444.3,80.115 441.87,81.915 439.11,83.025 C436.35,84.135 433.05,84.69 429.21,84.69 Z"
310 />
311 </g>
312 <g transform="translate(0.000000, 0.000000)">
313 <path
314 d="M61.826087,0 L158,0 L158,96.173913 L147.695652,96.173913 C100.271201,96.173913 61.826087,57.7287992 61.826087,10.3043478 L61.826087,0 L61.826087,0 Z"
315 fill="#0066CC"
316 />
317 <path
318 d="M158,3.43478261 L65.2608696,158 L138,158 C149.045695,158 158,149.045695 158,138 L158,3.43478261 L158,3.43478261 Z"
319 fill="url(#linearGradient-card-image-action-subtitle)"
320 />
321 <path
322 d="M123.652174,-30.9130435 L30.9130435,123.652174 L103.652174,123.652174 C114.697869,123.652174 123.652174,114.697869 123.652174,103.652174 L123.652174,-30.9130435 L123.652174,-30.9130435 Z"
323 fill="url(#linearGradient-card-image-action-subtitle)"
324 transform="translate(77.282609, 46.369565) scale(1, -1) rotate(90.000000) translate(-77.282609, -46.369565) "
325 />
326 </g>
327 </g>
328 </svg>
329 </div>
330 <div class="pf-v6-c-card__actions">
331 <button
332 class="pf-v6-c-menu-toggle pf-m-plain"
333 type="button"
334 aria-expanded="false"
335 aria-label="Card menu toggle"
336 id="card-image-action-subtitle-menu-toggle-kebab"
337 >
338 <span class="pf-v6-c-menu-toggle__icon">
339 <svg
340 class="pf-v6-svg"
341 fill="currentColor"
342 viewBox="0 0 32 32"
343 aria-hidden="true"
344 role="img"
345 width="1em"
346 height="1em"
347 >
348 <path
349 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
350 />
351 </svg>
352 </span>
353 </button>
354 <div class="pf-v6-c-check pf-m-standalone">
355 <input
356 class="pf-v6-c-check__input"
357 type="checkbox"
358 aria-label="Standalone check"
359 id="card-image-action-subtitle-check"
360 name="card-image-action-subtitle-check"
361 aria-labelledby="card-image-action-subtitle"
362 />
363 </div>
364 </div>
365 </div>
366 <div class="pf-v6-c-card__title">
367 <h2
368 class="pf-v6-c-card__title-text"
369 id="card-image-action-subtitle-check-label"
370 >Title</h2>
371 <div class="pf-v6-c-card__subtitle">Subtitle</div>
372 </div>
373 <div class="pf-v6-c-card__body">Body</div>
374 <div class="pf-v6-c-card__footer">Footer</div>
375 </div>
376
377 ```
378
379 ### With only actions in head (no title/footer)
380
381 ```html
382 <div class="pf-v6-c-card" id="card-action-example-3">
383 <div class="pf-v6-c-card__header">
384 <div class="pf-v6-c-card__actions">
385 <button
386 class="pf-v6-c-menu-toggle pf-m-plain"
387 type="button"
388 aria-expanded="false"
389 aria-label="Card menu toggle"
390 id="card-action-example-3-menu-toggle-kebab"
391 >
392 <span class="pf-v6-c-menu-toggle__icon">
393 <svg
394 class="pf-v6-svg"
395 fill="currentColor"
396 viewBox="0 0 32 32"
397 aria-hidden="true"
398 role="img"
399 width="1em"
400 height="1em"
401 >
402 <path
403 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
404 />
405 </svg>
406 </span>
407 </button>
408 <div class="pf-v6-c-check pf-m-standalone">
409 <input
410 class="pf-v6-c-check__input"
411 type="checkbox"
412 aria-label="Standalone check"
413 id="card-action-example-3-check"
414 name="card-action-example-3-check"
415 aria-labelledby="card-action-example-3"
416 />
417 </div>
418 </div>
419 </div>
420 <div
421 class="pf-v6-c-card__body"
422 id="card-action-example-3-check-label"
423 >This is the card body. There are only actions in the card head.</div>
424 </div>
425
426 ```
427
428 ### Card with header that wraps
429
430 ```html
431 <div class="pf-v6-c-card">
432 <div class="pf-v6-c-card__header pf-m-wrap">
433 <div class="pf-v6-c-card__actions pf-m-no-offset">
434 <button class="pf-v6-c-button pf-m-primary" type="button">
435 <span class="pf-v6-c-button__text">Primary action</span>
436 </button>
437
438 <button class="pf-v6-c-button pf-m-secondary" type="button">
439 <span class="pf-v6-c-button__text">Secondary action</span>
440 </button>
441
442 <button class="pf-v6-c-button pf-m-tertiary" type="button">
443 <span class="pf-v6-c-button__text">Tertiary action</span>
444 </button>
445 </div>
446 <div class="pf-v6-c-card__header-main">
447 <div class="pf-v6-c-card__title">
448 <h2
449 class="pf-v6-c-card__title-text"
450 >This is a longer card title that takes up more space</h2>
451 </div>
452 </div>
453 </div>
454 <div class="pf-v6-c-card__body">This is the card body</div>
455 </div>
456
457 ```
458
459 ### Actions with no offset
460
461 ```html
462 <div class="pf-v6-c-card" id="card-action-no-offset">
463 <div class="pf-v6-c-card__header">
464 <div class="pf-v6-c-card__actions pf-m-no-offset">
465 <button class="pf-v6-c-button pf-m-primary" type="button">
466 <span class="pf-v6-c-button__text">Action</span>
467 </button>
468 </div>
469 <div class="pf-v6-c-card__header-main">
470 <h1
471 class="pf-v6-c-title pf-m-2xl"
472 id="card-action-no-offset-check-label"
473 >This is a card title</h1>
474 </div>
475 </div>
476 <div class="pf-v6-c-card__body">Body</div>
477 <div class="pf-v6-c-card__footer">Footer</div>
478 </div>
479
480 ```
481
482 ### With only image in head
483
484 ```html
485 <div class="pf-v6-c-card" id="card-image-head-example">
486 <div class="pf-v6-c-card__header">
487 <div class="pf-v6-c-card__header-main">
488 <svg height="70px" viewBox="0 0 679 158">
489 <title>PatternFly</title>
490 <defs>
491 <linearGradient
492 x1="68%"
493 y1="2.25860997e-13%"
494 x2="32%"
495 y2="100%"
496 id="linearGradient-card-image-head-example"
497 >
498 <stop stop-color="#2B9AF3" offset="0%" />
499 <stop
500 stop-color="#73BCF7"
501 stop-opacity="0.502212631"
502 offset="100%"
503 />
504 </linearGradient>
505 </defs>
506 <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
507 <g
508 transform="translate(206.000000, 45.750000)"
509 fill="var(--pf-t--global--text--color--regular)"
510 fill-rule="nonzero"
511 >
512 <path
513 d="M0,65.25 L0,2.25 L33.21,2.25 C37.35,2.25 41.025,3.135 44.235,4.905 C47.445,6.675 49.98,9.09 51.84,12.15 C53.7,15.21 54.63,18.72 54.63,22.68 C54.63,26.46 53.7,29.865 51.84,32.895 C49.98,35.925 47.43,38.31 44.19,40.05 C40.95,41.79 37.29,42.66 33.21,42.66 L15.48,42.66 L15.48,65.25 L0,65.25 Z M15.48,29.88 L31.41,29.88 C33.69,29.88 35.52,29.22 36.9,27.9 C38.28,26.58 38.97,24.87 38.97,22.77 C38.97,20.61 38.28,18.855 36.9,17.505 C35.52,16.155 33.69,15.48 31.41,15.48 L15.48,15.48 L15.48,29.88 Z"
514 />
515 <path
516 d="M77.04,66.06 C73.68,66.06 70.695,65.43 68.085,64.17 C65.475,62.91 63.435,61.17 61.965,58.95 C60.495,56.73 59.76,54.18 59.76,51.3 C59.76,46.74 61.485,43.215 64.935,40.725 C68.385,38.235 73.2,36.99 79.38,36.99 C83.1,36.99 86.7,37.44 90.18,38.34 L90.18,36 C90.18,31.26 87.15,28.89 81.09,28.89 C77.49,28.89 72.69,30.15 66.69,32.67 L61.47,21.96 C69.15,18.48 76.56,16.74 83.7,16.74 C90.3,16.74 95.43,18.315 99.09,21.465 C102.75,24.615 104.58,29.04 104.58,34.74 L104.58,65.25 L90.18,65.25 L90.18,62.37 C88.26,63.69 86.235,64.635 84.105,65.205 C81.975,65.775 79.62,66.06 77.04,66.06 Z M73.62,51.03 C73.62,52.53 74.28,53.7 75.6,54.54 C76.92,55.38 78.75,55.8 81.09,55.8 C84.69,55.8 87.72,55.05 90.18,53.55 L90.18,47.43 C87.42,46.71 84.54,46.35 81.54,46.35 C79.02,46.35 77.07,46.755 75.69,47.565 C74.31,48.375 73.62,49.53 73.62,51.03 Z"
517 />
518 <path
519 d="M137.25,65.88 C125.73,65.88 119.97,60.84 119.97,50.76 L119.97,29.79 L110.34,29.79 L110.34,17.64 L119.97,17.64 L119.97,5.4 L134.55,2.25 L134.55,17.64 L147.87,17.64 L147.87,29.79 L134.55,29.79 L134.55,47.88 C134.55,49.98 135.015,51.465 135.945,52.335 C136.875,53.205 138.51,53.64 140.85,53.64 C143.01,53.64 145.2,53.31 147.42,52.65 L147.42,64.44 C146.1,64.86 144.42,65.205 142.38,65.475 C140.34,65.745 138.63,65.88 137.25,65.88 Z"
520 />
521 <path
522 d="M177.57,65.88 C166.05,65.88 160.29,60.84 160.29,50.76 L160.29,29.79 L150.66,29.79 L150.66,17.64 L160.29,17.64 L160.29,5.4 L174.87,2.25 L174.87,17.64 L188.19,17.64 L188.19,29.79 L174.87,29.79 L174.87,47.88 C174.87,49.98 175.335,51.465 176.265,52.335 C177.195,53.205 178.83,53.64 181.17,53.64 C183.33,53.64 185.52,53.31 187.74,52.65 L187.74,64.44 C186.42,64.86 184.74,65.205 182.7,65.475 C180.66,65.745 178.95,65.88 177.57,65.88 Z"
523 />
524 <path
525 d="M217.62,66.15 C212.76,66.15 208.365,65.055 204.435,62.865 C200.505,60.675 197.4,57.72 195.12,54 C192.84,50.28 191.7,46.11 191.7,41.49 C191.7,36.87 192.795,32.7 194.985,28.98 C197.175,25.26 200.16,22.305 203.94,20.115 C207.72,17.925 211.92,16.83 216.54,16.83 C221.22,16.83 225.36,17.955 228.96,20.205 C232.56,22.455 235.395,25.53 237.465,29.43 C239.535,33.33 240.57,37.8 240.57,42.84 L240.57,46.44 L206.64,46.44 C207.6,48.66 209.1,50.475 211.14,51.885 C213.18,53.295 215.58,54 218.34,54 C222.42,54 225.6,52.8 227.88,50.4 L237.51,58.95 C234.51,61.47 231.435,63.3 228.285,64.44 C225.135,65.58 221.58,66.15 217.62,66.15 Z M206.37,36.27 L226.26,36.27 C225.48,33.99 224.205,32.16 222.435,30.78 C220.665,29.4 218.61,28.71 216.27,28.71 C213.87,28.71 211.8,29.37 210.06,30.69 C208.32,32.01 207.09,33.87 206.37,36.27 Z"
526 />
527 <path
528 d="M247.41,65.25 L247.41,17.64 L261.99,17.64 L261.99,22.41 C265.23,18.51 269.4,16.56 274.5,16.56 C277.08,16.62 278.91,17.01 279.99,17.73 L279.99,30.42 C277.95,29.46 275.64,28.98 273.06,28.98 C270.78,28.98 268.665,29.505 266.715,30.555 C264.765,31.605 263.19,33.09 261.99,35.01 L261.99,65.25 L247.41,65.25 Z"
529 />
530 <path
531 d="M286.29,65.25 L286.29,17.64 L300.87,17.64 L300.87,20.88 C304.47,18.12 308.73,16.74 313.65,16.74 C317.37,16.74 320.655,17.55 323.505,19.17 C326.355,20.79 328.59,23.04 330.21,25.92 C331.83,28.8 332.64,32.13 332.64,35.91 L332.64,65.25 L318.06,65.25 L318.06,37.89 C318.06,35.25 317.28,33.15 315.72,31.59 C314.16,30.03 312.06,29.25 309.42,29.25 C305.76,29.25 302.91,30.51 300.87,33.03 L300.87,65.25 L286.29,65.25 Z"
532 />
533 <polygon
534 points="342 65.25 342 2.25 392.04 2.25 392.04 15.66 357.48 15.66 357.48 27.45 380.52 27.45 380.52 40.41 357.48 40.41 357.48 65.25"
535 />
536 <polygon points="399.96 65.25 399.96 2.25 414.54 0 414.54 65.25" />
537 <path
538 d="M429.21,84.69 C428.07,84.69 426.96,84.645 425.88,84.555 C424.8,84.465 423.9,84.33 423.18,84.15 L423.18,71.73 C424.38,71.97 425.88,72.09 427.68,72.09 C432.36,72.09 435.51,70.05 437.13,65.97 L437.13,65.88 L418.86,17.64 L434.97,17.64 L445.5,47.61 L457.74,17.64 L473.49,17.64 L452.16,67.68 C450.42,71.82 448.5,75.135 446.4,77.625 C444.3,80.115 441.87,81.915 439.11,83.025 C436.35,84.135 433.05,84.69 429.21,84.69 Z"
539 />
540 </g>
541 <g transform="translate(0.000000, 0.000000)">
542 <path
543 d="M61.826087,0 L158,0 L158,96.173913 L147.695652,96.173913 C100.271201,96.173913 61.826087,57.7287992 61.826087,10.3043478 L61.826087,0 L61.826087,0 Z"
544 fill="#0066CC"
545 />
546 <path
547 d="M158,3.43478261 L65.2608696,158 L138,158 C149.045695,158 158,149.045695 158,138 L158,3.43478261 L158,3.43478261 Z"
548 fill="url(#linearGradient-card-image-head-example)"
549 />
550 <path
551 d="M123.652174,-30.9130435 L30.9130435,123.652174 L103.652174,123.652174 C114.697869,123.652174 123.652174,114.697869 123.652174,103.652174 L123.652174,-30.9130435 L123.652174,-30.9130435 Z"
552 fill="url(#linearGradient-card-image-head-example)"
553 transform="translate(77.282609, 46.369565) scale(1, -1) rotate(90.000000) translate(-77.282609, -46.369565) "
554 />
555 </g>
556 </g>
557 </svg>
558 </div>
559 </div>
560 <div class="pf-v6-c-card__title">
561 <h2 class="pf-v6-c-card__title-text">Title</h2>
562 </div>
563 <div class="pf-v6-c-card__body">Body</div>
564 <div class="pf-v6-c-card__footer">Footer</div>
565 </div>
566
567 ```
568
569 ### With no footer
570
571 ```html
572 <div class="pf-v6-c-card" id="card-no-footer-example">
573 <div class="pf-v6-c-card__title">
574 <h2 class="pf-v6-c-card__title-text">Title</h2>
575 </div>
576 <div class="pf-v6-c-card__body">This card has no footer</div>
577 </div>
578
579 ```
580
581 ### With no title
582
583 ```html
584 <div class="pf-v6-c-card" id="card-no-title-example">
585 <div class="pf-v6-c-card__body">This card has no title</div>
586 <div class="pf-v6-c-card__footer">Footer</div>
587 </div>
588
589 ```
590
591 ### With only a content section
592
593 ```html
594 <div class="pf-v6-c-card" id="card-body-example">
595 <div class="pf-v6-c-card__body">Body</div>
596 </div>
597
598 ```
599
600 ### With multiple body sections
601
602 ```html
603 <div class="pf-v6-c-card" id="card-multiple-body-example">
604 <div class="pf-v6-c-card__title">
605 <h2 class="pf-v6-c-card__title-text">Title</h2>
606 </div>
607 <div class="pf-v6-c-card__body">Body</div>
608 <div class="pf-v6-c-card__body">Body</div>
609 <div class="pf-v6-c-card__body">Body</div>
610 <div class="pf-v6-c-card__footer">Footer</div>
611 </div>
612
613 ```
614
615 ### With only one body that fills
616
617 ```html
618 <div class="pf-v6-c-card" id="card-body-fill-example">
619 <div class="pf-v6-c-card__title">
620 <h2 class="pf-v6-c-card__title-text">Title</h2>
621 </div>
622 <div class="pf-v6-c-card__body pf-m-no-fill">Body pf-m-no-fill</div>
623 <div class="pf-v6-c-card__body pf-m-no-fill">Body pf-m-no-fill</div>
624 <div class="pf-v6-c-card__body">Body</div>
625 <div class="pf-v6-c-card__footer">Footer</div>
626 </div>
627
628 ```
629
630 ### Compact
631
632 ```html
633 <div class="pf-v6-c-card pf-m-compact" id="card-compact-example">
634 <div class="pf-v6-c-card__title">
635 <h2 class="pf-v6-c-card__title-text">Title</h2>
636 </div>
637 <div class="pf-v6-c-card__body">Body</div>
638 <div class="pf-v6-c-card__footer">Footer</div>
639 </div>
640
641 ```
642
643 ### Large
644
645 ```html
646 <div class="pf-v6-c-card pf-m-display-lg" id="card-display-lg-example">
647 <div class="pf-v6-c-card__title">
648 <h2 class="pf-v6-c-card__title-text">Title</h2>
649 </div>
650 <div class="pf-v6-c-card__body">Body</div>
651 <div class="pf-v6-c-card__footer">Footer</div>
652 </div>
653
654 ```
655
656 ### Selectable
657
658 ```html
659 <div class="pf-v6-l-gallery pf-m-gutter">
660 <div class="pf-v6-c-card pf-m-selectable" id="card-selectable-example">
661 <div class="pf-v6-c-card__header">
662 <div class="pf-v6-c-card__actions pf-m-no-offset">
663 <div class="pf-v6-c-card__selectable-actions">
664 <div class="pf-v6-c-check">
665 <input
666 class="pf-v6-c-check__input"
667 type="checkbox"
668 id="card-selectable-example-check"
669 name="card-selectable-example-check"
670 aria-labelledby="card-selectable-example"
671 />
672 <label
673 class="pf-v6-c-check__label"
674 for="card-selectable-example-check"
675 id="card-selectable-example-check-label"
676 name="card-selectable-example-check"
677 ></label>
678 </div>
679 </div>
680 </div>
681 <div class="pf-v6-c-card__header-main">
682 <div class="pf-v6-c-card__title">
683 <h2 class="pf-v6-c-card__title-text">Title</h2>
684 </div>
685 </div>
686 </div>
687 <div class="pf-v6-c-card__body">Body</div>
688 <div class="pf-v6-c-card__footer">Footer</div>
689 </div>
690
691 <div
692 class="pf-v6-c-card pf-m-selectable pf-m-disabled"
693 id="card-selectable-example-disabled"
694 >
695 <div class="pf-v6-c-card__header">
696 <div class="pf-v6-c-card__actions pf-m-no-offset">
697 <div class="pf-v6-c-card__selectable-actions">
698 <div class="pf-v6-c-check">
699 <input
700 class="pf-v6-c-check__input"
701 type="checkbox"
702 disabled
703 id="card-selectable-example-disabled-check"
704 name="card-selectable-example-disabled-check"
705 aria-labelledby="card-selectable-example-disabled"
706 />
707 <label
708 class="pf-v6-c-check__label pf-m-disabled"
709 for="card-selectable-example-disabled-check"
710 id="card-selectable-example-disabled-check-label"
711 name="card-selectable-example-disabled-check"
712 ></label>
713 </div>
714 </div>
715 </div>
716 <div class="pf-v6-c-card__header-main">
717 <div
718 class="pf-v6-c-card__title"
719 id="card-selectable-example-disabled-title"
720 >
721 <h2 class="pf-v6-c-card__title-text">Disabled card</h2>
722 </div>
723 </div>
724 </div>
725 <div class="pf-v6-c-card__body">Body</div>
726 <div class="pf-v6-c-card__footer">Footer</div>
727 </div>
728
729 <div
730 class="pf-v6-c-card pf-m-selectable pf-m-selected pf-m-disabled"
731 id="card-selectable-example-selected-disabled"
732 >
733 <div class="pf-v6-c-card__header">
734 <div class="pf-v6-c-card__actions pf-m-no-offset">
735 <div class="pf-v6-c-card__selectable-actions">
736 <div class="pf-v6-c-check">
737 <input
738 class="pf-v6-c-check__input"
739 type="checkbox"
740 checked
741 disabled
742 id="card-selectable-example-selected-disabled-check"
743 name="card-selectable-example-selected-disabled-check"
744 aria-labelledby="card-selectable-example-selected-disabled"
745 />
746 <label
747 class="pf-v6-c-check__label pf-m-disabled"
748 for="card-selectable-example-selected-disabled-check"
749 id="card-selectable-example-selected-disabled-check-label"
750 name="card-selectable-example-selected-disabled-check"
751 ></label>
752 </div>
753 </div>
754 </div>
755 <div class="pf-v6-c-card__header-main">
756 <div
757 class="pf-v6-c-card__title"
758 id="card-selectable-example-selected-disabled-title"
759 >
760 <h2 class="pf-v6-c-card__title-text">Selected but disabled card</h2>
761 </div>
762 </div>
763 </div>
764 <div class="pf-v6-c-card__body">Body</div>
765 <div class="pf-v6-c-card__footer">Footer</div>
766 </div>
767 </div>
768
769 ```
770
771 ### Selectable secondary style
772
773 ```html
774 <div class="pf-v6-l-gallery pf-m-gutter">
775 <div
776 class="pf-v6-c-card pf-m-selectable pf-m-secondary"
777 id="card-selectable-secondary-example"
778 >
779 <div class="pf-v6-c-card__header">
780 <div class="pf-v6-c-card__actions pf-m-no-offset">
781 <div class="pf-v6-c-card__selectable-actions">
782 <div class="pf-v6-c-check">
783 <input
784 class="pf-v6-c-check__input"
785 type="checkbox"
786 id="card-selectable-secondary-example-check"
787 name="card-selectable-secondary-example-check"
788 aria-labelledby="card-selectable-secondary-example"
789 />
790 <label
791 class="pf-v6-c-check__label"
792 for="card-selectable-secondary-example-check"
793 id="card-selectable-secondary-example-check-label"
794 name="card-selectable-secondary-example-check"
795 ></label>
796 </div>
797 </div>
798 </div>
799 <div class="pf-v6-c-card__header-main">
800 <div class="pf-v6-c-card__title">
801 <h2 class="pf-v6-c-card__title-text">Title</h2>
802 </div>
803 </div>
804 </div>
805 <div class="pf-v6-c-card__body">Body</div>
806 <div class="pf-v6-c-card__footer">Footer</div>
807 </div>
808
809 <div
810 class="pf-v6-c-card pf-m-selectable pf-m-disabled pf-m-secondary"
811 id="card-selectable-secondary-example-disabled"
812 >
813 <div class="pf-v6-c-card__header">
814 <div class="pf-v6-c-card__actions pf-m-no-offset">
815 <div class="pf-v6-c-card__selectable-actions">
816 <div class="pf-v6-c-check">
817 <input
818 class="pf-v6-c-check__input"
819 type="checkbox"
820 disabled
821 id="card-selectable-secondary-example-disabled-check"
822 name="card-selectable-secondary-example-disabled-check"
823 aria-labelledby="card-selectable-secondary-example-disabled"
824 />
825 <label
826 class="pf-v6-c-check__label pf-m-disabled"
827 for="card-selectable-secondary-example-disabled-check"
828 id="card-selectable-secondary-example-disabled-check-label"
829 name="card-selectable-secondary-example-disabled-check"
830 ></label>
831 </div>
832 </div>
833 </div>
834 <div class="pf-v6-c-card__header-main">
835 <div
836 class="pf-v6-c-card__title"
837 id="card-selectable-secondary-example-disabled-title"
838 >
839 <h2 class="pf-v6-c-card__title-text">Disabled card</h2>
840 </div>
841 </div>
842 </div>
843 <div class="pf-v6-c-card__body">Body</div>
844 <div class="pf-v6-c-card__footer">Footer</div>
845 </div>
846
847 <div
848 class="pf-v6-c-card pf-m-selectable pf-m-selected pf-m-disabled pf-m-secondary"
849 id="card-selectable-secondary-example-selected-disabled"
850 >
851 <div class="pf-v6-c-card__header">
852 <div class="pf-v6-c-card__actions pf-m-no-offset">
853 <div class="pf-v6-c-card__selectable-actions">
854 <div class="pf-v6-c-check">
855 <input
856 class="pf-v6-c-check__input"
857 type="checkbox"
858 checked
859 disabled
860 id="card-selectable-secondary-example-selected-disabled-check"
861 name="card-selectable-secondary-example-selected-disabled-check"
862 aria-labelledby="card-selectable-secondary-example-selected-disabled"
863 />
864 <label
865 class="pf-v6-c-check__label pf-m-disabled"
866 for="card-selectable-secondary-example-selected-disabled-check"
867 id="card-selectable-secondary-example-selected-disabled-check-label"
868 name="card-selectable-secondary-example-selected-disabled-check"
869 ></label>
870 </div>
871 </div>
872 </div>
873 <div class="pf-v6-c-card__header-main">
874 <div
875 class="pf-v6-c-card__title"
876 id="card-selectable-secondary-example-selected-disabled-title"
877 >
878 <h2 class="pf-v6-c-card__title-text">Selected but disabled card</h2>
879 </div>
880 </div>
881 </div>
882 <div class="pf-v6-c-card__body">Body</div>
883 <div class="pf-v6-c-card__footer">Footer</div>
884 </div>
885 </div>
886
887 ```
888
889 ### Single selectable
890
891 ```html
892 <div class="pf-v6-l-gallery pf-m-gutter">
893 <div class="pf-v6-c-card pf-m-selectable" id="card-single-selectable-example">
894 <div class="pf-v6-c-card__header">
895 <div class="pf-v6-c-card__actions pf-m-no-offset">
896 <div class="pf-v6-c-card__selectable-actions">
897 <div class="pf-v6-c-radio">
898 <input
899 class="pf-v6-c-radio__input"
900 type="radio"
901 id="card-single-selectable-example-radio"
902 name="card-single-selectable-example-radio"
903 aria-labelledby="card-single-selectable-example"
904 />
905 <label
906 class="pf-v6-c-radio__label"
907 for="card-single-selectable-example-radio"
908 id="card-single-selectable-example-radio-label"
909 name="card-single-selectable-example-radio"
910 ></label>
911 </div>
912 </div>
913 </div>
914 <div class="pf-v6-c-card__header-main">
915 <div
916 class="pf-v6-c-card__title"
917 id="card-single-selectable-example-title"
918 >
919 <h2 class="pf-v6-c-card__title-text">Title</h2>
920 </div>
921 </div>
922 </div>
923 <div class="pf-v6-c-card__body">Body</div>
924 <div class="pf-v6-c-card__footer">Footer</div>
925 </div>
926
927 <div
928 class="pf-v6-c-card pf-m-selectable pf-m-disabled"
929 id="card-single-selectable-example-disabled"
930 >
931 <div class="pf-v6-c-card__header">
932 <div class="pf-v6-c-card__actions pf-m-no-offset">
933 <div class="pf-v6-c-card__selectable-actions">
934 <div class="pf-v6-c-radio">
935 <input
936 class="pf-v6-c-radio__input"
937 type="radio"
938 id="card-single-selectable-example-disabled-radio"
939 name="card-single-selectable-example-disabled-radio"
940 aria-labelledby="card-single-selectable-example-disabled"
941 disabled
942 />
943 <label
944 class="pf-v6-c-radio__label pf-m-disabled"
945 for="card-single-selectable-example-disabled-radio"
946 id="card-single-selectable-example-disabled-radio-label"
947 name="card-single-selectable-example-disabled-radio"
948 ></label>
949 </div>
950 </div>
951 </div>
952 <div class="pf-v6-c-card__header-main">
953 <div
954 class="pf-v6-c-card__title"
955 id="card-single-selectable-example-disabled-title"
956 >
957 <h2 class="pf-v6-c-card__title-text">Disabled card</h2>
958 </div>
959 </div>
960 </div>
961 <div class="pf-v6-c-card__body">Body</div>
962 <div class="pf-v6-c-card__footer">Footer</div>
963 </div>
964
965 <div
966 class="pf-v6-c-card pf-m-selectable pf-m-selected pf-m-disabled"
967 id="card-single-selectable-example-selected-disabled"
968 >
969 <div class="pf-v6-c-card__header">
970 <div class="pf-v6-c-card__actions pf-m-no-offset">
971 <div class="pf-v6-c-card__selectable-actions">
972 <div class="pf-v6-c-radio">
973 <input
974 class="pf-v6-c-radio__input"
975 type="radio"
976 id="card-single-selectable-example-selected-disabled-radio"
977 name="card-single-selectable-example-selected-disabled-radio"
978 aria-labelledby="card-single-selectable-example-selected-disabled"
979 disabled
980 checked
981 />
982 <label
983 class="pf-v6-c-radio__label pf-m-disabled"
984 for="card-single-selectable-example-selected-disabled-radio"
985 id="card-single-selectable-example-selected-disabled-radio-label"
986 name="card-single-selectable-example-selected-disabled-radio"
987 ></label>
988 </div>
989 </div>
990 </div>
991 <div class="pf-v6-c-card__header-main">
992 <div
993 class="pf-v6-c-card__title"
994 id="card-single-selectable-example-selected-disabled-title"
995 >
996 <h2 class="pf-v6-c-card__title-text">Selected but disabled card</h2>
997 </div>
998 </div>
999 </div>
1000 <div class="pf-v6-c-card__body">Body</div>
1001 <div class="pf-v6-c-card__footer">Footer</div>
1002 </div>
1003 </div>
1004
1005 ```
1006
1007 ### Actionable (button)
1008
1009 ```html
1010 <div class="pf-v6-l-gallery pf-m-gutter">
1011 <div class="pf-v6-c-card pf-m-clickable" id="card-actionable-button-example">
1012 <div class="pf-v6-c-card__header">
1013 <div class="pf-v6-c-card__actions pf-m-no-offset">
1014 <div class="pf-v6-c-card__selectable-actions">
1015 <button
1016 class="pf-v6-c-card__clickable-action"
1017 type="button"
1018 aria-labelledby="card-actionable-button-example"
1019 ></button>
1020 </div>
1021 </div>
1022 <div class="pf-v6-c-card__header-main">
1023 <div
1024 class="pf-v6-c-card__title"
1025 id="card-actionable-button-example-title"
1026 >
1027 <h2 class="pf-v6-c-card__title-text">Title</h2>
1028 </div>
1029 </div>
1030 </div>
1031 <div class="pf-v6-c-card__body">Body</div>
1032 <div class="pf-v6-c-card__footer">Footer</div>
1033 </div>
1034
1035 <div
1036 class="pf-v6-c-card pf-m-clickable pf-m-current"
1037 id="card-actionable-button-example-clicked"
1038 >
1039 <div class="pf-v6-c-card__header">
1040 <div class="pf-v6-c-card__actions pf-m-no-offset">
1041 <div class="pf-v6-c-card__selectable-actions">
1042 <button
1043 class="pf-v6-c-card__clickable-action"
1044 type="button"
1045 aria-labelledby="card-actionable-button-example-clicked"
1046 ></button>
1047 </div>
1048 </div>
1049 <div class="pf-v6-c-card__header-main">
1050 <div
1051 class="pf-v6-c-card__title"
1052 id="card-actionable-button-example-clicked-title"
1053 >
1054 <h2 class="pf-v6-c-card__title-text">Title (clicked)</h2>
1055 </div>
1056 </div>
1057 </div>
1058 <div class="pf-v6-c-card__body">Body</div>
1059 <div class="pf-v6-c-card__footer">Footer</div>
1060 </div>
1061
1062 <div
1063 class="pf-v6-c-card pf-m-clickable pf-m-disabled"
1064 id="card-actionable-button-example-disabled"
1065 >
1066 <div class="pf-v6-c-card__header">
1067 <div class="pf-v6-c-card__actions pf-m-no-offset">
1068 <div class="pf-v6-c-card__selectable-actions">
1069 <button
1070 class="pf-v6-c-card__clickable-action"
1071 type="button"
1072 aria-labelledby="card-actionable-button-example-disabled"
1073 disabled
1074 ></button>
1075 </div>
1076 </div>
1077 <div class="pf-v6-c-card__header-main">
1078 <div
1079 class="pf-v6-c-card__title"
1080 id="card-actionable-button-example-disabled-title"
1081 >
1082 <h2 class="pf-v6-c-card__title-text">Disabled card</h2>
1083 </div>
1084 </div>
1085 </div>
1086 <div class="pf-v6-c-card__body">Body</div>
1087 <div class="pf-v6-c-card__footer">Footer</div>
1088 </div>
1089 </div>
1090
1091 ```
1092
1093 ### Actionable (link)
1094
1095 ```html
1096 <div class="pf-v6-l-gallery pf-m-gutter">
1097 <div class="pf-v6-c-card pf-m-clickable" id="card-actionable-link-example">
1098 <div class="pf-v6-c-card__header">
1099 <div class="pf-v6-c-card__actions pf-m-no-offset">
1100 <div class="pf-v6-c-card__selectable-actions">
1101 <a
1102 class="pf-v6-c-card__clickable-action"
1103 aria-labelledby="card-actionable-link-example"
1104 href="#"
1105 ></a>
1106 </div>
1107 </div>
1108 <div class="pf-v6-c-card__header-main">
1109 <div
1110 class="pf-v6-c-card__title"
1111 id="card-actionable-link-example-title"
1112 >
1113 <h2 class="pf-v6-c-card__title-text">Title</h2>
1114 </div>
1115 </div>
1116 </div>
1117 <div class="pf-v6-c-card__body">Body</div>
1118 <div class="pf-v6-c-card__footer">Footer</div>
1119 </div>
1120
1121 <div
1122 class="pf-v6-c-card pf-m-clickable pf-m-disabled"
1123 id="card-actionable-link-example-disabled"
1124 >
1125 <div class="pf-v6-c-card__header">
1126 <div class="pf-v6-c-card__actions pf-m-no-offset">
1127 <div class="pf-v6-c-card__selectable-actions">
1128 <a
1129 class="pf-v6-c-card__clickable-action pf-m-disabled"
1130 tabindex="-1"
1131 aria-disabled="true"
1132 aria-labelledby="card-actionable-link-example-disabled"
1133 href="#"
1134 ></a>
1135 </div>
1136 </div>
1137 <div class="pf-v6-c-card__header-main">
1138 <div
1139 class="pf-v6-c-card__title"
1140 id="card-actionable-link-example-disabled-title"
1141 >
1142 <h2 class="pf-v6-c-card__title-text">Disabled card</h2>
1143 </div>
1144 </div>
1145 </div>
1146 <div class="pf-v6-c-card__body">Body</div>
1147 <div class="pf-v6-c-card__footer">Footer</div>
1148 </div>
1149 </div>
1150
1151 ```
1152
1153 ### Actionable secondary style
1154
1155 ```html
1156 <div class="pf-v6-l-gallery pf-m-gutter">
1157 <div
1158 class="pf-v6-c-card pf-m-clickable pf-m-secondary"
1159 id="card-clickable-secondary-example"
1160 >
1161 <div class="pf-v6-c-card__header">
1162 <div class="pf-v6-c-card__actions pf-m-no-offset">
1163 <div class="pf-v6-c-card__selectable-actions">
1164 <div class="pf-v6-c-radio pf-m-standalone">
1165 <input
1166 class="pf-v6-c-radio__input pf-v6-screen-reader"
1167 type="radio"
1168 id="card-clickable-secondary-example-sr-only-radio"
1169 name="card-clickable-secondary-example-sr-only-radio"
1170 aria-labelledby="card-clickable-secondary-example"
1171 />
1172
1173 <label
1174 class="pf-v6-c-radio__label"
1175 for="card-clickable-secondary-example-sr-only-radio"
1176 id="card-clickable-secondary-example-sr-only-radio-label"
1177 name="card-clickable-secondary-example-sr-only-radio"
1178 ></label>
1179 </div>
1180 </div>
1181 </div>
1182 <div class="pf-v6-c-card__header-main">
1183 <div
1184 class="pf-v6-c-card__title"
1185 id="card-clickable-secondary-example-title"
1186 >
1187 <h2 class="pf-v6-c-card__title-text">Title</h2>
1188 </div>
1189 </div>
1190 </div>
1191 <div class="pf-v6-c-card__body">Body</div>
1192 <div class="pf-v6-c-card__footer">Footer</div>
1193 </div>
1194
1195 <div
1196 class="pf-v6-c-card pf-m-clickable pf-m-disabled pf-m-secondary"
1197 id="card-clickable-secondary-example-disabled"
1198 >
1199 <div class="pf-v6-c-card__header">
1200 <div class="pf-v6-c-card__actions pf-m-no-offset">
1201 <div class="pf-v6-c-card__selectable-actions">
1202 <div class="pf-v6-c-radio pf-m-standalone">
1203 <input
1204 class="pf-v6-c-radio__input pf-v6-screen-reader"
1205 type="radio"
1206 id="card-clickable-secondary-example-disabled-sr-only-radio"
1207 name="card-clickable-secondary-example-disabled-sr-only-radio"
1208 aria-labelledby="card-clickable-secondary-example-disabled"
1209 disabled
1210 />
1211
1212 <label
1213 class="pf-v6-c-radio__label pf-m-disabled"
1214 for="card-clickable-secondary-example-disabled-sr-only-radio"
1215 id="card-clickable-secondary-example-disabled-sr-only-radio-label"
1216 name="card-clickable-secondary-example-disabled-sr-only-radio"
1217 ></label>
1218 </div>
1219 </div>
1220 </div>
1221 <div class="pf-v6-c-card__header-main">
1222 <div
1223 class="pf-v6-c-card__title"
1224 id="card-clickable-secondary-example-disabled-title"
1225 >
1226 <h2 class="pf-v6-c-card__title-text">Disabled card</h2>
1227 </div>
1228 </div>
1229 </div>
1230 <div class="pf-v6-c-card__body">Body</div>
1231 <div class="pf-v6-c-card__footer">Footer</div>
1232 </div>
1233 </div>
1234
1235 ```
1236
1237 ### Actionable and selectable
1238
1239 ```html
1240 <div class="pf-v6-l-gallery pf-m-gutter">
1241 <div
1242 class="pf-v6-c-card pf-m-clickable pf-m-selectable"
1243 id="card-clickable-selectable-example"
1244 >
1245 <div class="pf-v6-c-card__header">
1246 <div class="pf-v6-c-card__actions pf-m-no-offset">
1247 <div class="pf-v6-c-card__selectable-actions">
1248 <div class="pf-v6-c-check">
1249 <input
1250 class="pf-v6-c-check__input"
1251 type="checkbox"
1252 id="card-clickable-selectable-example-check"
1253 name="card-clickable-selectable-example-check"
1254 aria-labelledby="card-clickable-selectable-example"
1255 />
1256 <label
1257 class="pf-v6-c-check__label"
1258 for="card-clickable-selectable-example-check"
1259 id="card-clickable-selectable-example-check-label"
1260 name="card-clickable-selectable-example-check"
1261 ></label>
1262 </div>
1263 </div>
1264 </div>
1265 <div class="pf-v6-c-card__header-main">
1266 <div
1267 class="pf-v6-c-card__title"
1268 id="card-clickable-selectable-example-title"
1269 >
1270 <h2 class="pf-v6-c-card__title-text">
1271 <button class="pf-v6-c-button pf-m-inline pf-m-link" type="button">
1272 <span class="pf-v6-c-button__text">Title</span>
1273 </button>
1274 </h2>
1275 </div>
1276 </div>
1277 </div>
1278 <div class="pf-v6-c-card__body">Body</div>
1279 <div class="pf-v6-c-card__footer">Footer</div>
1280 </div>
1281
1282 <div
1283 class="pf-v6-c-card pf-m-clickable pf-m-selectable pf-m-current"
1284 id="card-clickable-selectable-current-example"
1285 >
1286 <div class="pf-v6-c-card__header">
1287 <div class="pf-v6-c-card__actions pf-m-no-offset">
1288 <div class="pf-v6-c-card__selectable-actions">
1289 <div class="pf-v6-c-check">
1290 <input
1291 class="pf-v6-c-check__input"
1292 type="checkbox"
1293 id="card-clickable-selectable-current-example-check"
1294 name="card-clickable-selectable-current-example-check"
1295 aria-labelledby="card-clickable-selectable-current-example"
1296 />
1297 <label
1298 class="pf-v6-c-check__label"
1299 for="card-clickable-selectable-current-example-check"
1300 id="card-clickable-selectable-current-example-check-label"
1301 name="card-clickable-selectable-current-example-check"
1302 ></label>
1303 </div>
1304 </div>
1305 </div>
1306 <div class="pf-v6-c-card__header-main">
1307 <div
1308 class="pf-v6-c-card__title"
1309 id="card-clickable-selectable-current-example-title"
1310 >
1311 <h2 class="pf-v6-c-card__title-text">
1312 <button class="pf-v6-c-button pf-m-inline pf-m-link" type="button">
1313 <span class="pf-v6-c-button__text">Current card (clicked)</span>
1314 </button>
1315 </h2>
1316 </div>
1317 </div>
1318 </div>
1319 <div class="pf-v6-c-card__body">Body</div>
1320 <div class="pf-v6-c-card__footer">Footer</div>
1321 </div>
1322
1323 <div
1324 class="pf-v6-c-card pf-m-clickable pf-m-selectable pf-m-disabled"
1325 id="card-clickable-selectable-example-disabled"
1326 >
1327 <div class="pf-v6-c-card__header">
1328 <div class="pf-v6-c-card__actions pf-m-no-offset">
1329 <div class="pf-v6-c-card__selectable-actions">
1330 <div class="pf-v6-c-check">
1331 <input
1332 class="pf-v6-c-check__input"
1333 type="checkbox"
1334 disabled
1335 id="card-clickable-selectable-example-disabled-check"
1336 name="card-clickable-selectable-example-disabled-check"
1337 aria-labelledby="card-clickable-selectable-example-disabled"
1338 />
1339 <label
1340 class="pf-v6-c-check__label pf-m-disabled"
1341 for="card-clickable-selectable-example-disabled-check"
1342 id="card-clickable-selectable-example-disabled-check-label"
1343 name="card-clickable-selectable-example-disabled-check"
1344 ></label>
1345 </div>
1346 </div>
1347 </div>
1348 <div class="pf-v6-c-card__header-main">
1349 <div
1350 class="pf-v6-c-card__title"
1351 id="card-clickable-selectable-example-disabled-title"
1352 >
1353 <h2 class="pf-v6-c-card__title-text">
1354 <button
1355 class="pf-v6-c-button pf-m-inline pf-m-link"
1356 type="button"
1357 disabled
1358 >
1359 <span class="pf-v6-c-button__text">Disabled card</span>
1360 </button>
1361 </h2>
1362 </div>
1363 </div>
1364 </div>
1365 <div class="pf-v6-c-card__body">Body</div>
1366 <div class="pf-v6-c-card__footer">Footer</div>
1367 </div>
1368
1369 <div
1370 class="pf-v6-c-card pf-m-clickable pf-m-selectable pf-m-selected pf-m-disabled"
1371 id="card-clickable-selectable-example-selected-disabled"
1372 >
1373 <div class="pf-v6-c-card__header">
1374 <div class="pf-v6-c-card__actions pf-m-no-offset">
1375 <div class="pf-v6-c-card__selectable-actions">
1376 <div class="pf-v6-c-check">
1377 <input
1378 class="pf-v6-c-check__input"
1379 type="checkbox"
1380 checked
1381 disabled
1382 id="card-clickable-selectable-example-selected-disabled-check"
1383 name="card-clickable-selectable-example-selected-disabled-check"
1384 aria-labelledby="card-clickable-selectable-example-selected-disabled"
1385 />
1386 <label
1387 class="pf-v6-c-check__label pf-m-disabled"
1388 for="card-clickable-selectable-example-selected-disabled-check"
1389 id="card-clickable-selectable-example-selected-disabled-check-label"
1390 name="card-clickable-selectable-example-selected-disabled-check"
1391 ></label>
1392 </div>
1393 </div>
1394 </div>
1395 <div class="pf-v6-c-card__header-main">
1396 <div
1397 class="pf-v6-c-card__title"
1398 id="card-clickable-selectable-example-selected-disabled-title"
1399 >
1400 <h2 class="pf-v6-c-card__title-text">
1401 <button
1402 class="pf-v6-c-button pf-m-inline pf-m-link"
1403 type="button"
1404 disabled
1405 >
1406 <span class="pf-v6-c-button__text">Selected but disabled card</span>
1407 </button>
1408 </h2>
1409 </div>
1410 </div>
1411 </div>
1412 <div class="pf-v6-c-card__body">Body</div>
1413 <div class="pf-v6-c-card__footer">Footer</div>
1414 </div>
1415 </div>
1416
1417 ```
1418
1419 ### Actionable and selectable secondary style
1420
1421 ```html
1422 <div class="pf-v6-l-gallery pf-m-gutter">
1423 <div
1424 class="pf-v6-c-card pf-m-clickable pf-m-selectable pf-m-secondary"
1425 id="card-clickable-selectable-secondary-example"
1426 >
1427 <div class="pf-v6-c-card__header">
1428 <div class="pf-v6-c-card__actions pf-m-no-offset">
1429 <div class="pf-v6-c-card__selectable-actions">
1430 <div class="pf-v6-c-check">
1431 <input
1432 class="pf-v6-c-check__input"
1433 type="checkbox"
1434 id="card-clickable-selectable-secondary-example-check"
1435 name="card-clickable-selectable-secondary-example-check"
1436 aria-labelledby="card-clickable-selectable-secondary-example"
1437 />
1438 <label
1439 class="pf-v6-c-check__label"
1440 for="card-clickable-selectable-secondary-example-check"
1441 id="card-clickable-selectable-secondary-example-check-label"
1442 name="card-clickable-selectable-secondary-example-check"
1443 ></label>
1444 </div>
1445 </div>
1446 </div>
1447 <div class="pf-v6-c-card__header-main">
1448 <div
1449 class="pf-v6-c-card__title"
1450 id="card-clickable-selectable-secondary-example-title"
1451 >
1452 <h2 class="pf-v6-c-card__title-text">
1453 <button class="pf-v6-c-button pf-m-inline pf-m-link" type="button">
1454 <span class="pf-v6-c-button__text">Title</span>
1455 </button>
1456 </h2>
1457 </div>
1458 </div>
1459 </div>
1460 <div class="pf-v6-c-card__body">Body</div>
1461 <div class="pf-v6-c-card__footer">Footer</div>
1462 </div>
1463
1464 <div
1465 class="pf-v6-c-card pf-m-clickable pf-m-selectable pf-m-current pf-m-secondary"
1466 id="card-clickable-selectable-secondary-current-example"
1467 >
1468 <div class="pf-v6-c-card__header">
1469 <div class="pf-v6-c-card__actions pf-m-no-offset">
1470 <div class="pf-v6-c-card__selectable-actions">
1471 <div class="pf-v6-c-check">
1472 <input
1473 class="pf-v6-c-check__input"
1474 type="checkbox"
1475 id="card-clickable-selectable-secondary-current-example-check"
1476 name="card-clickable-selectable-secondary-current-example-check"
1477 aria-labelledby="card-clickable-selectable-secondary-current-example"
1478 />
1479 <label
1480 class="pf-v6-c-check__label"
1481 for="card-clickable-selectable-secondary-current-example-check"
1482 id="card-clickable-selectable-secondary-current-example-check-label"
1483 name="card-clickable-selectable-secondary-current-example-check"
1484 ></label>
1485 </div>
1486 </div>
1487 </div>
1488 <div class="pf-v6-c-card__header-main">
1489 <div
1490 class="pf-v6-c-card__title"
1491 id="card-clickable-selectable-secondary-current-example-title"
1492 >
1493 <h2 class="pf-v6-c-card__title-text">
1494 <button class="pf-v6-c-button pf-m-inline pf-m-link" type="button">
1495 <span class="pf-v6-c-button__text">Current card (clicked)</span>
1496 </button>
1497 </h2>
1498 </div>
1499 </div>
1500 </div>
1501 <div class="pf-v6-c-card__body">Body</div>
1502 <div class="pf-v6-c-card__footer">Footer</div>
1503 </div>
1504
1505 <div
1506 class="pf-v6-c-card pf-m-clickable pf-m-selectable pf-m-disabled pf-m-secondary"
1507 id="card-clickable-selectable-secondary-example-disabled"
1508 >
1509 <div class="pf-v6-c-card__header">
1510 <div class="pf-v6-c-card__actions pf-m-no-offset">
1511 <div class="pf-v6-c-card__selectable-actions">
1512 <div class="pf-v6-c-check">
1513 <input
1514 class="pf-v6-c-check__input"
1515 type="checkbox"
1516 disabled
1517 id="card-clickable-selectable-secondary-example-disabled-check"
1518 name="card-clickable-selectable-secondary-example-disabled-check"
1519 aria-labelledby="card-clickable-selectable-secondary-example-disabled"
1520 />
1521 <label
1522 class="pf-v6-c-check__label pf-m-disabled"
1523 for="card-clickable-selectable-secondary-example-disabled-check"
1524 id="card-clickable-selectable-secondary-example-disabled-check-label"
1525 name="card-clickable-selectable-secondary-example-disabled-check"
1526 ></label>
1527 </div>
1528 </div>
1529 </div>
1530 <div class="pf-v6-c-card__header-main">
1531 <div
1532 class="pf-v6-c-card__title"
1533 id="card-clickable-selectable-secondary-example-disabled-title"
1534 >
1535 <h2 class="pf-v6-c-card__title-text">
1536 <button
1537 class="pf-v6-c-button pf-m-inline pf-m-link"
1538 type="button"
1539 disabled
1540 >
1541 <span class="pf-v6-c-button__text">Disabled card</span>
1542 </button>
1543 </h2>
1544 </div>
1545 </div>
1546 </div>
1547 <div class="pf-v6-c-card__body">Body</div>
1548 <div class="pf-v6-c-card__footer">Footer</div>
1549 </div>
1550
1551 <div
1552 class="pf-v6-c-card pf-m-clickable pf-m-selectable pf-m-selected pf-m-disabled pf-m-secondary"
1553 id="card-clickable-selectable-secondary-example-selected-disabled"
1554 >
1555 <div class="pf-v6-c-card__header">
1556 <div class="pf-v6-c-card__actions pf-m-no-offset">
1557 <div class="pf-v6-c-card__selectable-actions">
1558 <div class="pf-v6-c-check">
1559 <input
1560 class="pf-v6-c-check__input"
1561 type="checkbox"
1562 checked
1563 disabled
1564 id="card-clickable-selectable-secondary-example-selected-disabled-check"
1565 name="card-clickable-selectable-secondary-example-selected-disabled-check"
1566 aria-labelledby="card-clickable-selectable-secondary-example-selected-disabled"
1567 />
1568 <label
1569 class="pf-v6-c-check__label pf-m-disabled"
1570 for="card-clickable-selectable-secondary-example-selected-disabled-check"
1571 id="card-clickable-selectable-secondary-example-selected-disabled-check-label"
1572 name="card-clickable-selectable-secondary-example-selected-disabled-check"
1573 ></label>
1574 </div>
1575 </div>
1576 </div>
1577 <div class="pf-v6-c-card__header-main">
1578 <div
1579 class="pf-v6-c-card__title"
1580 id="card-clickable-selectable-secondary-example-selected-disabled-title"
1581 >
1582 <h2 class="pf-v6-c-card__title-text">
1583 <button
1584 class="pf-v6-c-button pf-m-inline pf-m-link"
1585 type="button"
1586 disabled
1587 >
1588 <span class="pf-v6-c-button__text">Selected but disabled card</span>
1589 </button>
1590 </h2>
1591 </div>
1592 </div>
1593 </div>
1594 <div class="pf-v6-c-card__body">Body</div>
1595 <div class="pf-v6-c-card__footer">Footer</div>
1596 </div>
1597 </div>
1598
1599 ```
1600
1601 ### Secondary
1602
1603 ```html
1604 <div class="pf-v6-c-card pf-m-secondary" id="card-secondary-example">
1605 <div class="pf-v6-c-card__title">
1606 <h2 class="pf-v6-c-card__title-text">Title</h2>
1607 </div>
1608 <div class="pf-v6-c-card__body">Body</div>
1609 <div class="pf-v6-c-card__footer">Footer</div>
1610 </div>
1611
1612 ```
1613
1614 ### Plain
1615
1616 ```html
1617 <div class="pf-v6-c-card pf-m-plain" id="card-plain-example">
1618 <div class="pf-v6-c-card__title">
1619 <h2 class="pf-v6-c-card__title-text">Title</h2>
1620 </div>
1621 <div class="pf-v6-c-card__body">Body</div>
1622 <div class="pf-v6-c-card__footer">Footer</div>
1623 </div>
1624
1625 ```
1626
1627 ### Expandable
1628
1629 ```html
1630 <div class="pf-v6-c-card" id="card-expandable-example">
1631 <div class="pf-v6-c-card__header">
1632 <div class="pf-v6-c-card__header-toggle">
1633 <button
1634 class="pf-v6-c-button pf-m-plain"
1635 id="card-expandable-example-toggle"
1636 type="button"
1637 aria-labelledby="card-expandable-example-title card-expandable-example-toggle"
1638 aria-label="Details"
1639 >
1640 <span class="pf-v6-c-button__icon pf-m-start">
1641 <span class="pf-v6-c-card__header-toggle-icon">
1642 <svg
1643 class="pf-v6-svg"
1644 fill="currentColor"
1645 viewBox="0 0 20 20"
1646 aria-hidden="true"
1647 role="img"
1648 width="1em"
1649 height="1em"
1650 >
1651 <path
1652 d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
1653 />
1654 </svg>
1655 </span>
1656 </span>
1657 </button>
1658 </div>
1659 <div class="pf-v6-c-card__actions">
1660 <button
1661 class="pf-v6-c-menu-toggle pf-m-plain"
1662 type="button"
1663 aria-expanded="false"
1664 aria-label="Card menu toggle"
1665 id="card-expandable-example-menu-toggle-kebab"
1666 >
1667 <span class="pf-v6-c-menu-toggle__icon">
1668 <svg
1669 class="pf-v6-svg"
1670 fill="currentColor"
1671 viewBox="0 0 32 32"
1672 aria-hidden="true"
1673 role="img"
1674 width="1em"
1675 height="1em"
1676 >
1677 <path
1678 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
1679 />
1680 </svg>
1681 </span>
1682 </button>
1683 <div class="pf-v6-c-check pf-m-standalone">
1684 <input
1685 class="pf-v6-c-check__input"
1686 type="checkbox"
1687 aria-label="Standalone check"
1688 id="card-expandable-example-check"
1689 name="card-expandable-example-check"
1690 aria-labelledby="card-expandable-example"
1691 />
1692 </div>
1693 </div>
1694 <div class="pf-v6-c-card__header-main">
1695 <div class="pf-v6-c-card__title">
1696 <h2
1697 class="pf-v6-c-card__title-text"
1698 id="card-expandable-example-title"
1699 >Title</h2>
1700 </div>
1701 </div>
1702 </div>
1703 </div>
1704
1705 ```
1706
1707 ### Expandable with image
1708
1709 ```html
1710 <div class="pf-v6-c-card" id="card-expandable-image-example">
1711 <div class="pf-v6-c-card__header">
1712 <div class="pf-v6-c-card__header-toggle">
1713 <button
1714 class="pf-v6-c-button pf-m-plain"
1715 id="card-expandable-image-example-toggle"
1716 type="button"
1717 aria-labelledby="card-expandable-image-example-title card-expandable-image-example-toggle"
1718 aria-label="Details"
1719 >
1720 <span class="pf-v6-c-button__icon pf-m-start">
1721 <span class="pf-v6-c-card__header-toggle-icon">
1722 <svg
1723 class="pf-v6-svg"
1724 fill="currentColor"
1725 viewBox="0 0 20 20"
1726 aria-hidden="true"
1727 role="img"
1728 width="1em"
1729 height="1em"
1730 >
1731 <path
1732 d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
1733 />
1734 </svg>
1735 </span>
1736 </span>
1737 </button>
1738 </div>
1739 <div class="pf-v6-c-card__header-main">
1740 <img
1741 src="/assets/images/PF-IconLogo.svg"
1742 alt="PatternFly logo"
1743 width="27px"
1744 />
1745 </div>
1746 <div class="pf-v6-c-card__actions">
1747 <button
1748 class="pf-v6-c-menu-toggle pf-m-plain"
1749 type="button"
1750 aria-expanded="false"
1751 aria-label="Card menu toggle"
1752 id="card-expandable-image-example-menu-toggle-kebab"
1753 >
1754 <span class="pf-v6-c-menu-toggle__icon">
1755 <svg
1756 class="pf-v6-svg"
1757 fill="currentColor"
1758 viewBox="0 0 32 32"
1759 aria-hidden="true"
1760 role="img"
1761 width="1em"
1762 height="1em"
1763 >
1764 <path
1765 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
1766 />
1767 </svg>
1768 </span>
1769 </button>
1770 <div class="pf-v6-c-check pf-m-standalone">
1771 <input
1772 class="pf-v6-c-check__input"
1773 type="checkbox"
1774 aria-label="Standalone check"
1775 id="card-expandable-image-example-check"
1776 name="card-expandable-image-example-check"
1777 aria-labelledby="card-expandable-image-example"
1778 />
1779 </div>
1780 </div>
1781 </div>
1782 </div>
1783
1784 ```
1785
1786 ### Expanded
1787
1788 ```html
1789 <div class="pf-v6-c-card pf-m-expanded" id="card-expanded-example">
1790 <div class="pf-v6-c-card__header">
1791 <div class="pf-v6-c-card__header-toggle">
1792 <button
1793 class="pf-v6-c-button pf-m-plain"
1794 id="card-expanded-example-toggle"
1795 type="button"
1796 aria-labelledby="card-expanded-example-title card-expanded-example-toggle"
1797 aria-label="Details"
1798 >
1799 <span class="pf-v6-c-button__icon pf-m-start">
1800 <span class="pf-v6-c-card__header-toggle-icon">
1801 <svg
1802 class="pf-v6-svg"
1803 fill="currentColor"
1804 viewBox="0 0 20 20"
1805 aria-hidden="true"
1806 role="img"
1807 width="1em"
1808 height="1em"
1809 >
1810 <path
1811 d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
1812 />
1813 </svg>
1814 </span>
1815 </span>
1816 </button>
1817 </div>
1818 <div class="pf-v6-c-card__actions">
1819 <button
1820 class="pf-v6-c-menu-toggle pf-m-plain"
1821 type="button"
1822 aria-expanded="false"
1823 aria-label="Card menu toggle"
1824 id="card-expanded-example-menu-toggle-kebab"
1825 >
1826 <span class="pf-v6-c-menu-toggle__icon">
1827 <svg
1828 class="pf-v6-svg"
1829 fill="currentColor"
1830 viewBox="0 0 32 32"
1831 aria-hidden="true"
1832 role="img"
1833 width="1em"
1834 height="1em"
1835 >
1836 <path
1837 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
1838 />
1839 </svg>
1840 </span>
1841 </button>
1842 <div class="pf-v6-c-check pf-m-standalone">
1843 <input
1844 class="pf-v6-c-check__input"
1845 type="checkbox"
1846 aria-label="Standalone check"
1847 id="card-expanded-example-check"
1848 name="card-expanded-example-check"
1849 aria-labelledby="card-expanded-example"
1850 />
1851 </div>
1852 </div>
1853 <div class="pf-v6-c-card__header-main">
1854 <h2
1855 class="pf-v6-c-card__title-text"
1856 id="card-expanded-example-title"
1857 >Title</h2>
1858 </div>
1859 </div>
1860 <div class="pf-v6-c-card__expandable-content">
1861 <div class="pf-v6-c-card__body">Body</div>
1862 <div class="pf-v6-c-card__footer">Footer</div>
1863 </div>
1864 </div>
1865
1866 ```
1867
1868 ### Full height card
1869
1870 ```html
1871 <div class="pf-v6-c-card pf-m-full-height" id="card-full-height-example">
1872 <div class="pf-v6-c-card__header">
1873 <div class="pf-v6-c-card__actions">
1874 <button
1875 class="pf-v6-c-menu-toggle pf-m-plain"
1876 type="button"
1877 aria-expanded="false"
1878 aria-label="Card menu toggle"
1879 id="card-full-height-example-menu-toggle-kebab"
1880 >
1881 <span class="pf-v6-c-menu-toggle__icon">
1882 <svg
1883 class="pf-v6-svg"
1884 fill="currentColor"
1885 viewBox="0 0 32 32"
1886 aria-hidden="true"
1887 role="img"
1888 width="1em"
1889 height="1em"
1890 >
1891 <path
1892 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
1893 />
1894 </svg>
1895 </span>
1896 </button>
1897 <div class="pf-v6-c-check pf-m-standalone">
1898 <input
1899 class="pf-v6-c-check__input"
1900 type="checkbox"
1901 aria-label="Standalone check"
1902 id="card-full-height-example-check"
1903 name="card-full-height-example-check"
1904 aria-labelledby="card-full-height-example"
1905 />
1906 </div>
1907 </div>
1908 <div class="pf-v6-c-card__header-main">
1909 <div class="pf-v6-c-card__title">
1910 <h2
1911 class="pf-v6-c-card__title-text"
1912 id="card-full-height-example-title&quot;"
1913 >Title</h2>
1914 </div>
1915 </div>
1916 </div>
1917 <div class="pf-v6-c-card__body">Body</div>
1918 <div class="pf-v6-c-card__footer">Footer</div>
1919 </div>
1920
1921 ```
1922
1923 ### Expandable toggle on right
1924
1925 ```html
1926 <div class="pf-v6-c-card" id="card-toggle-on-right-example">
1927 <div class="pf-v6-c-card__header pf-m-toggle-right">
1928 <div class="pf-v6-c-card__actions">
1929 <button
1930 class="pf-v6-c-menu-toggle pf-m-plain"
1931 type="button"
1932 aria-expanded="false"
1933 aria-label="Card menu toggle"
1934 id="card-toggle-on-right-example-menu-toggle-kebab"
1935 >
1936 <span class="pf-v6-c-menu-toggle__icon">
1937 <svg
1938 class="pf-v6-svg"
1939 fill="currentColor"
1940 viewBox="0 0 32 32"
1941 aria-hidden="true"
1942 role="img"
1943 width="1em"
1944 height="1em"
1945 >
1946 <path
1947 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
1948 />
1949 </svg>
1950 </span>
1951 </button>
1952 <div class="pf-v6-c-check pf-m-standalone">
1953 <input
1954 class="pf-v6-c-check__input"
1955 type="checkbox"
1956 aria-label="Standalone check"
1957 id="card-toggle-on-right-example-check"
1958 name="card-toggle-on-right-example-check"
1959 aria-labelledby="card-toggle-on-right-example"
1960 />
1961 </div>
1962 </div>
1963 <div class="pf-v6-c-card__header-main">
1964 <div class="pf-v6-c-card__title">
1965 <h2
1966 class="pf-v6-c-card__title-text"
1967 id="card-toggle-on-right-example-title"
1968 >Title</h2>
1969 </div>
1970 </div>
1971 <div class="pf-v6-c-card__header-toggle">
1972 <button
1973 class="pf-v6-c-button pf-m-plain"
1974 id="card-toggle-on-right-example-toggle"
1975 type="button"
1976 aria-labelledby="card-toggle-on-right-example-title card-toggle-on-right-example-toggle"
1977 aria-label="Details"
1978 >
1979 <span class="pf-v6-c-button__icon pf-m-start">
1980 <span class="pf-v6-c-card__header-toggle-icon">
1981 <svg
1982 class="pf-v6-svg"
1983 fill="currentColor"
1984 viewBox="0 0 20 20"
1985 aria-hidden="true"
1986 role="img"
1987 width="1em"
1988 height="1em"
1989 >
1990 <path
1991 d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
1992 />
1993 </svg>
1994 </span>
1995 </span>
1996 </button>
1997 </div>
1998 </div>
1999 </div>
2000
2001 ```
2002
2003 ### Card with dividers between sections
2004
2005 ```html
2006 <div class="pf-v6-c-card">
2007 <div class="pf-v6-c-card__title">
2008 <h2 class="pf-v6-c-card__title-text">Title</h2>
2009 </div>
2010 <hr class="pf-v6-c-divider" />
2011 <div class="pf-v6-c-card__body">Body</div>
2012 <hr class="pf-v6-c-divider" />
2013 <div class="pf-v6-c-card__body">Body</div>
2014 <hr class="pf-v6-c-divider" />
2015 <div class="pf-v6-c-card__footer">Footer</div>
2016 </div>
2017
2018 ```
2019
2020 ## Documentation
2021
2022 ### Overview
2023
2024 A card is a generic rectangular container that can be used to build other components. Use a default card for regular page content and the compact variation for dashboard or small cards.
2025
2026 ### Usage
2027
2028 | Class | Applied | Outcome |
2029 | ---- | ---- | ---- |
2030 | `.pf-v6-c-card` | `<div>` | Creates a card component. **Required** |
2031 | `.pf-v6-c-card__title` | `<div>` | Creates a card title container. |
2032 | `.pf-v6-c-card__title-text` | `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>`, `<div>` | Creates a card title text element. |
2033 | `.pf-v6-c-card__subtitle` | Creates a card subtitle element. |
2034 | `.pf-v6-c-card__body` | `<div>` | Creates the body of a card. By default, the body element fills the available space in the card. You can use multiple `.pf-v6-c-card__body` elements. |
2035 | `.pf-v6-c-card__footer` | `<div>` | Creates the footer of a card. |
2036 | `.pf-v6-c-card__header` | `<div>` | Creates the header of the card where images, actions, and/or the card title can go. |
2037 | `.pf-v6-c-card__header-toggle` | `<div>` | Creates the expandable card toggle. |
2038 | `.pf-v6-c-card__header-toggle-icon` | `<span>` | Creates the expandable card toggle icon. |
2039 | `.pf-v6-c-card__actions` | `<div>` | Creates an actions element to be used in the card header. |
2040 | `.pf-v6-c-card__selectable-actions` | `<div>` | Creates an element to hold a checkbox or radio and the related label used to make a card selectable or clickable. |
2041 | `.pf-v6-c-card__header-main` | `<div>` | Creates a wrapper element to be used in the card header when using an image, logo, or text. **Required if `.pf-v6-c-card__header` has content outside of a card header toggle or card header actions** |
2042 | `.pf-v6-c-card__expandable-content` | `<div>` | Creates the expandable card's expandable content. |
2043 | `.pf-v6-c-card__sr-input` | `<input>` | Creates an input which, when focused, makes a following `.pf-v6-c-card` appear focused. |
2044 | `.pf-m-compact` | `.pf-v6-c-card` | Creates a compact variation of the card component that involves smaller font sizes and spacing. This variation is for use on dashboards and where a smaller card is preferred. |
2045 | `.pf-m-display-lg` | `.pf-v6-c-card` | Creates a large variation of the card component that involves larger font sizes and spacing. This variation is for marketing use cases. |
2046 | `.pf-m-wrap` | `.pf-v6-c-card__header` | Modifies the card header to wrap its children. |
2047 | `.pf-m-no-fill` | `.pf-v6-c-card__body` | Sets a `.pf-v6-c-card__body` not to fill the available space in `.pf-v6-c-card`. `.pf-m-no-fill` can be added to multiple card bodies. |
2048 | `.pf-m-selectable` | `.pf-v6-c-card` | Modifies a card to be selectable. |
2049 | `.pf-m-clickable` | `.pf-v6-c-card` | Modifies a card to be clickable. |
2050 | `.pf-m-selected` | `.pf-v6-c-card` | Modifies a selectable card for selected state styling. Can be used in addition to indicating selection via the `.pf-v6-c-card__input`. |
2051 | `.pf-m-current` | `.pf-v6-c-card` | Modifies a card that is both clickable and selectable for clicked state styling. |
2052 | `.pf-m-disabled` | `.pf-v6-c-card` | Modifies a card so it is not selectable or clickable. |
2053 | `.pf-m-secondary` | `.pf-v6-c-card` | Modifies the card to have secondary styling. |
2054 | `.pf-m-flat` | `.pf-v6-c-card` | Modifies the card to have a border instead of a shadow. `.pf-m-flat` is for use in layouts where cards are against a white background. |
2055 | `.pf-m-rounded` | `.pf-v6-c-card` | Modifies the card to have rounded corners. |
2056 | `.pf-m-plain` | `.pf-v6-c-card` | Modifies the card to have no box shadow and no background color. |
2057 | `.pf-m-expanded` | `.pf-v6-c-card` | Modifies the card for the expanded state. |
2058 | `.pf-m-toggle-right` | `.pf-v6-c-card__header` | Modifies the expandable card header toggle to be positioned at flex-end. |
2059 | `.pf-m-full-height` | `.pf-v6-c-card` | Modifies the card to full height of its parent. |
2060 | `.pf-m-glass` | `.pf-v6-c-card` | Applies glass styles when glass theme is enabled. |
2061 | `.pf-m-no-offset` | `.pf-v6-c-card__actions` | Removes the negative vertical margins on the actions element intended to align the action content with the card title. |