Debian Codegraph @

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

raw
1 ---
2 id: Form
3 section: components
4 subsection: forms
5 cssPrefix: pf-v6-c-form
6 ---## Examples
7
8 ### Vertically aligned labels
9
10 ```html
11 <form class="pf-v6-c-form" novalidate>
12 <div class="pf-v6-c-form__group">
13 <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-vertical-name">
14 <span class="pf-v6-c-form__label-text">Name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
15 <span
16 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
17 type="button"
18 role="button"
19 tabindex="0"
20 aria-label="More information for name field"
21 aria-describedby="form-vertical-name"
22 >
23 <span class="pf-v6-c-button__icon">
24 <svg
25 class="pf-v6-svg"
26 viewBox="0 0 1024 1024"
27 fill="currentColor"
28 aria-hidden="true"
29 role="img"
30 width="1em"
31 height="1em"
32 >
33 <path
34 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
35 />
36 </svg>
37 </span>
38 </span></span>
39 </div>
40 <div class="pf-v6-c-form__group-control">
41 <span class="pf-v6-c-form-control pf-m-required">
42 <input
43 required
44 type="text"
45 id="form-vertical-name"
46 name="form-vertical-name"
47 />
48 </span>
49 </div>
50 </div>
51 </form>
52
53 ```
54
55 ### Horizontally aligned labels
56
57 ```html
58 <form class="pf-v6-c-form pf-m-horizontal" novalidate>
59 <div class="pf-v6-c-form__group">
60 <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-horizontal-name">
61 <span class="pf-v6-c-form__label-text">Name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
62 </div>
63 <div class="pf-v6-c-form__group-control">
64 <span class="pf-v6-c-form-control pf-m-required">
65 <input
66 required
67 type="text"
68 id="form-horizontal-name"
69 name="form-horizontal-name"
70 />
71 </span>
72 </div>
73 </div>
74 <div class="pf-v6-c-form__group">
75 <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-horizontal-info">
76 <span class="pf-v6-c-form__label-text">Information</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
77 <span
78 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
79 type="button"
80 role="button"
81 tabindex="0"
82 aria-label="More information for information field"
83 aria-describedby="form-horizontal-info"
84 >
85 <span class="pf-v6-c-button__icon">
86 <svg
87 class="pf-v6-svg"
88 viewBox="0 0 1024 1024"
89 fill="currentColor"
90 aria-hidden="true"
91 role="img"
92 width="1em"
93 height="1em"
94 >
95 <path
96 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
97 />
98 </svg>
99 </span>
100 </span></span>
101 </div>
102 <div class="pf-v6-c-form__group-control">
103 <span class="pf-v6-c-form-control pf-m-textarea">
104 <textarea
105 type="text"
106 id="form-horizontal-info"
107 name="form-horizontal-info"
108 aria-label="Textarea example"
109 ></textarea>
110 </span>
111 </div>
112 </div>
113 <div
114 class="pf-v6-c-form__group"
115 role="group"
116 aria-labelledby="form-horizontalform-horizontal-checkbox-legend"
117 >
118 <div
119 class="pf-v6-c-form__group-label pf-m-no-padding-top"
120 id="form-horizontalform-horizontal-checkbox-legend"
121 ><span class="pf-v6-c-form__label">
122 <span class="pf-v6-c-form__label-text">Label (no top padding)</span></span>&nbsp;<span class="pf-v6-c-form__group-label-help">
123 <span
124 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
125 type="button"
126 role="button"
127 tabindex="0"
128 aria-label="More information for label field"
129 aria-describedby="form-horizontal-checkbox-legend"
130 >
131 <span class="pf-v6-c-button__icon">
132 <svg
133 class="pf-v6-svg"
134 viewBox="0 0 1024 1024"
135 fill="currentColor"
136 aria-hidden="true"
137 role="img"
138 width="1em"
139 height="1em"
140 >
141 <path
142 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
143 />
144 </svg>
145 </span>
146 </span></span>
147 </div>
148 <div class="pf-v6-c-form__group-control pf-m-stack">
149 <div class="pf-v6-c-check">
150 <input
151 class="pf-v6-c-check__input"
152 type="checkbox"
153 id="form-horizontal-checkbox"
154 name="form-horizontal-checkbox"
155 />
156
157 <label
158 class="pf-v6-c-check__label"
159 for="form-horizontal-checkbox"
160 >Option 1</label>
161 </div>
162 <div class="pf-v6-c-check">
163 <input
164 class="pf-v6-c-check__input"
165 type="checkbox"
166 id="form-horizontal-checkbox2"
167 name="form-horizontal-checkbox2"
168 />
169
170 <label
171 class="pf-v6-c-check__label"
172 for="form-horizontal-checkbox2"
173 >Option 2</label>
174 </div>
175 </div>
176 </div>
177 </form>
178
179 ```
180
181 ### Horizontal layout at a custom breakpoint
182
183 ```html
184 <form class="pf-v6-c-form pf-m-horizontal-on-sm" novalidate>
185 <div class="pf-v6-c-form__group">
186 <div class="pf-v6-c-form__group-label"><label
187 class="pf-v6-c-form__label"
188 for="form-horizontal-custom-breakpoint-name"
189 >
190 <span class="pf-v6-c-form__label-text">Name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
191 <span
192 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
193 type="button"
194 role="button"
195 tabindex="0"
196 aria-label="More information for name field"
197 aria-describedby="form-horizontal-custom-breakpoint-name"
198 >
199 <span class="pf-v6-c-button__icon">
200 <svg
201 class="pf-v6-svg"
202 viewBox="0 0 1024 1024"
203 fill="currentColor"
204 aria-hidden="true"
205 role="img"
206 width="1em"
207 height="1em"
208 >
209 <path
210 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
211 />
212 </svg>
213 </span>
214 </span></span>
215 </div>
216 <div class="pf-v6-c-form__group-control">
217 <span class="pf-v6-c-form-control pf-m-required">
218 <input
219 required
220 type="text"
221 id="form-horizontal-custom-breakpoint-name"
222 name="form-horizontal-custom-breakpoint-name"
223 />
224 </span>
225 </div>
226 </div>
227 </form>
228
229 ```
230
231 ### Form sections
232
233 ```html
234 <form class="pf-v6-c-form" novalidate>
235 <section class="pf-v6-c-form__section" role="group">
236 <div class="pf-v6-c-form__group">
237 <div class="pf-v6-c-form__group-label"><label
238 class="pf-v6-c-form__label"
239 for="form-section-example-section-1-input"
240 >
241 <span class="pf-v6-c-form__label-text">Form section 1 inputs</span></label>
242 </div>
243 <div class="pf-v6-c-form__group-control">
244 <span class="pf-v6-c-form-control pf-m-required">
245 <input
246 required
247 type="text"
248 id="form-section-example-section-1-input"
249 name="form-section-example-section-1-input"
250 />
251 </span>
252 </div>
253 </div>
254 <div class="pf-v6-c-form__group">
255 <div class="pf-v6-c-form__group-label"><label
256 class="pf-v6-c-form__label"
257 for="form-section-example-section-1-input-2"
258 >
259 <span class="pf-v6-c-form__label-text">Form section 1 inputs</span></label>
260 </div>
261 <div class="pf-v6-c-form__group-control">
262 <span class="pf-v6-c-form-control pf-m-required">
263 <input
264 required
265 type="text"
266 id="form-section-example-section-1-input-2"
267 name="form-section-example-section-1-input-2"
268 />
269 </span>
270 </div>
271 </div>
272 </section>
273 <section
274 class="pf-v6-c-form__section"
275 role="group"
276 aria-labelledby="form-section-example-section-2-title"
277 >
278 <div
279 class="pf-v6-c-form__section-title"
280 id="form-section-example-section-2-title"
281 aria-hidden="true"
282 >Section 2 title (optional)</div>
283 <div class="pf-v6-c-form__group">
284 <div class="pf-v6-c-form__group-label"><label
285 class="pf-v6-c-form__label"
286 for="form-section-example-section-2-input"
287 >
288 <span class="pf-v6-c-form__label-text">Form section 2 inputs</span></label>
289 </div>
290 <div class="pf-v6-c-form__group-control">
291 <span class="pf-v6-c-form-control pf-m-required">
292 <input
293 required
294 type="text"
295 id="form-section-example-section-2-input"
296 name="form-section-example-section-2-input"
297 />
298 </span>
299 </div>
300 </div>
301 <div class="pf-v6-c-form__group">
302 <div class="pf-v6-c-form__group-label"><label
303 class="pf-v6-c-form__label"
304 for="form-section-example-section-2-input-2"
305 >
306 <span class="pf-v6-c-form__label-text">Form section 2 inputs</span></label>
307 </div>
308 <div class="pf-v6-c-form__group-control">
309 <span class="pf-v6-c-form-control pf-m-required">
310 <input
311 required
312 type="text"
313 id="form-section-example-section-2-input-2"
314 name="form-section-example-section-2-input-2"
315 />
316 </span>
317 </div>
318 </div>
319 </section>
320 </form>
321
322 ```
323
324 ### Help text
325
326 ```html
327 <form class="pf-v6-c-form" novalidate>
328 <div class="pf-v6-c-form__group">
329 <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-help-text-name">
330 <span class="pf-v6-c-form__label-text">Name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
331 </div>
332 <div class="pf-v6-c-form__group-control">
333 <span class="pf-v6-c-form-control pf-m-required">
334 <input
335 required
336 type="text"
337 id="form-help-text-name"
338 name="form-help-text-name"
339 aria-describedby="form-help-text-name-helper"
340 />
341 </span>
342 <div class="pf-v6-c-form__helper-text" aria-live="polite">
343 <div class="pf-v6-c-helper-text">
344 <div
345 class="pf-v6-c-helper-text__item"
346 id="form-help-text-name-helper"
347 >
348 <span class="pf-v6-c-helper-text__item-text">This is helper text.</span>
349 </div>
350 </div>
351 </div>
352 </div>
353 </div>
354 <div class="pf-v6-c-form__group">
355 <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-help-text-email">
356 <span class="pf-v6-c-form__label-text">E-mail</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
357 </div>
358 <div class="pf-v6-c-form__group-control">
359 <span class="pf-v6-c-form-control pf-m-warning">
360 <input
361 required
362 type="text"
363 id="form-help-text-email"
364 name="form-help-text-email"
365 aria-describedby="form-help-text-email-helper"
366 />
367 <span class="pf-v6-c-form-control__utilities">
368 <span class="pf-v6-c-form-control__icon pf-m-status">
369 <i class="fas fa-exclamation-triangle" aria-hidden="true"></i>
370 </span>
371 </span>
372 </span>
373 <div class="pf-v6-c-form__helper-text" aria-live="polite">
374 <div class="pf-v6-c-helper-text">
375 <div
376 class="pf-v6-c-helper-text__item pf-m-warning"
377 id="form-help-text-email-helper"
378 >
379 <span class="pf-v6-c-helper-text__item-icon">
380 <i class="fas fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
381 </span>
382 <span class="pf-v6-c-helper-text__item-text">
383 <span class="pf-v6-screen-reader">Warning:</span>
384 This is helper text for a warning input.
385 </span>
386 </div>
387 </div>
388 </div>
389 </div>
390 </div>
391 <div class="pf-v6-c-form__group">
392 <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="-address">
393 <span class="pf-v6-c-form__label-text">Address</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
394 </div>
395 <div class="pf-v6-c-form__group-control">
396 <span class="pf-v6-c-form-control pf-m-required pf-m-error">
397 <input
398 required
399 type="text"
400 id="-address"
401 name="-address"
402 aria-invalid="true"
403 aria-describedby="-address-helper"
404 />
405 <span class="pf-v6-c-form-control__utilities">
406 <span class="pf-v6-c-form-control__icon pf-m-status">
407 <i class="fas fa-exclamation-circle" aria-hidden="true"></i>
408 </span>
409 </span>
410 </span>
411 <div class="pf-v6-c-form__helper-text" aria-live="polite">
412 <div class="pf-v6-c-helper-text">
413 <div
414 class="pf-v6-c-helper-text__item pf-m-error"
415 id="-address-helper"
416 >
417 <span class="pf-v6-c-helper-text__item-icon">
418 <i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
419 </span>
420 <span class="pf-v6-c-helper-text__item-text">
421 <span class="pf-v6-screen-reader">Error:</span>
422 This is helper text for an invalid input.
423 </span>
424 </div>
425 </div>
426 </div>
427 </div>
428 </div>
429 <div class="pf-v6-c-form__group">
430 <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-help-text-comment">
431 <span class="pf-v6-c-form__label-text">Comment</span></label>
432 </div>
433 <div class="pf-v6-c-form__group-control">
434 <span class="pf-v6-c-form-control pf-m-success">
435 <input
436 value="This is a valid comment"
437 type="text"
438 id="form-help-text-comment"
439 name="form-help-text-comment"
440 aria-describedby="form-help-text-comment-helper"
441 />
442 <span class="pf-v6-c-form-control__utilities">
443 <span class="pf-v6-c-form-control__icon pf-m-status">
444 <i class="fas fa-check-circle" aria-hidden="true"></i>
445 </span>
446 </span>
447 </span>
448 <div class="pf-v6-c-form__helper-text" aria-live="polite">
449 <div class="pf-v6-c-helper-text">
450 <div
451 class="pf-v6-c-helper-text__item pf-m-success"
452 id="form-help-text-comment-helper"
453 >
454 <span class="pf-v6-c-helper-text__item-icon">
455 <i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
456 </span>
457 <span class="pf-v6-c-helper-text__item-text">
458 <span class="pf-v6-screen-reader">Success:</span>
459 This is helper text for success input.
460 </span>
461 </div>
462 </div>
463 </div>
464 </div>
465 </div>
466 <div class="pf-v6-c-form__group">
467 <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-help-text-info">
468 <span class="pf-v6-c-form__label-text">Information</span></label>
469 </div>
470 <div class="pf-v6-c-form__group-control">
471 <span
472 class="pf-v6-c-form-control pf-m-error pf-m-textarea pf-m-resize-both"
473 >
474 <textarea
475 id="form-help-text-info"
476 name="form-help-text-info"
477 aria-invalid="true"
478 aria-describedby="form-help-text-info-helper"
479 ></textarea>
480 <span class="pf-v6-c-form-control__utilities">
481 <span class="pf-v6-c-form-control__icon pf-m-status">
482 <i class="fas fa-exclamation-circle" aria-hidden="true"></i>
483 </span>
484 </span>
485 </span>
486 <div class="pf-v6-c-form__helper-text" aria-live="polite">
487 <div class="pf-v6-c-helper-text">
488 <div
489 class="pf-v6-c-helper-text__item pf-m-error"
490 id="form-help-text-info-helper"
491 >
492 <span class="pf-v6-c-helper-text__item-icon">
493 <i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
494 </span>
495 <span class="pf-v6-c-helper-text__item-text">
496 <span class="pf-v6-screen-reader">Error:</span>
497 This is helper text with an icon.
498 </span>
499 </div>
500 </div>
501 </div>
502 </div>
503 </div>
504 </form>
505
506 ```
507
508 ### Label with additional info
509
510 ```html
511 <form class="pf-v6-c-form" novalidate>
512 <div class="pf-v6-c-form__group">
513 <div class="pf-v6-c-form__group-label pf-m-info">
514 <div class="pf-v6-c-form__group-label-main"><label class="pf-v6-c-form__label" for="form-additional-info-name">
515 <span class="pf-v6-c-form__label-text">Name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
516 <span
517 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
518 type="button"
519 role="button"
520 tabindex="0"
521 aria-label="More information for name field"
522 aria-describedby="form-additional-infoform-additional-info-name"
523 >
524 <span class="pf-v6-c-button__icon">
525 <svg
526 class="pf-v6-svg"
527 viewBox="0 0 1024 1024"
528 fill="currentColor"
529 aria-hidden="true"
530 role="img"
531 width="1em"
532 height="1em"
533 >
534 <path
535 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
536 />
537 </svg>
538 </span>
539 </span></span>
540 </div>
541 <div class="pf-v6-c-form__group-label-info">More info about the name field</div>
542 </div>
543 <div class="pf-v6-c-form__group-control">
544 <span class="pf-v6-c-form-control pf-m-required">
545 <input
546 required
547 type="text"
548 id="form-additional-info-name"
549 name="form-additional-info-name"
550 />
551 </span>
552 </div>
553 </div>
554 </form>
555
556 ```
557
558 ### Label with additional info (horizontal form)
559
560 ```html
561 <form class="pf-v6-c-form pf-m-horizontal" novalidate>
562 <div class="pf-v6-c-form__group">
563 <div class="pf-v6-c-form__group-label pf-m-info">
564 <div class="pf-v6-c-form__group-label-main"><label
565 class="pf-v6-c-form__label"
566 for="form-additional-info-horizontal-name"
567 >
568 <span class="pf-v6-c-form__label-text">Name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
569 <span
570 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
571 type="button"
572 role="button"
573 tabindex="0"
574 aria-label="More information for name field"
575 aria-describedby="form-additional-info-horizontalform-additional-info-horizontal-name"
576 >
577 <span class="pf-v6-c-button__icon">
578 <svg
579 class="pf-v6-svg"
580 viewBox="0 0 1024 1024"
581 fill="currentColor"
582 aria-hidden="true"
583 role="img"
584 width="1em"
585 height="1em"
586 >
587 <path
588 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
589 />
590 </svg>
591 </span>
592 </span></span>
593 </div>
594 <div class="pf-v6-c-form__group-label-info">More info about the name field</div>
595 </div>
596 <div class="pf-v6-c-form__group-control">
597 <span class="pf-v6-c-form-control pf-m-required">
598 <input
599 required
600 type="text"
601 id="form-additional-info-horizontal-name"
602 name="form-additional-info-horizontal-name"
603 />
604 </span>
605 </div>
606 </div>
607 </form>
608
609 ```
610
611 ### Action group
612
613 ```html
614 <form class="pf-v6-c-form" novalidate>
615 <div class="pf-v6-c-form__group pf-m-action">
616 <div class="pf-v6-c-form__actions">
617 <button class="pf-v6-c-button pf-m-primary" type="submit">
618 <span class="pf-v6-c-button__text">Submit form</span>
619 </button>
620 <button class="pf-v6-c-button pf-m-link" type="reset">
621 <span class="pf-v6-c-button__text">Reset form</span>
622 </button>
623 </div>
624 </div>
625 </form>
626
627 ```
628
629 ### Field group (non-expandable)
630
631 ```html
632 <form class="pf-v6-c-form" novalidate>
633 <div
634 class="pf-v6-c-form__field-group"
635 role="group"
636 aria-labelledby="form-field-group-field-group-title"
637 >
638 <div class="pf-v6-c-form__field-group-header">
639 <div class="pf-v6-c-form__field-group-header-main">
640 <div class="pf-v6-c-form__field-group-header-title">
641 <div
642 class="pf-v6-c-form__field-group-header-title-text"
643 id="form-field-group-field-group-title"
644 >Field group Title</div>
645 </div>
646 <div
647 class="pf-v6-c-form__field-group-header-description"
648 >Field group description text</div>
649 </div>
650 <div class="pf-v6-c-form__field-group-header-actions">
651 <button class="pf-v6-c-button pf-m-secondary" type="button">
652 <span class="pf-v6-c-button__text">Action</span>
653 </button>
654 </div>
655 </div>
656 <div class="pf-v6-c-form__field-group-body" inert>
657 <div class="pf-v6-c-form__group">
658 <div class="pf-v6-c-form__group-label"><label
659 class="pf-v6-c-form__label"
660 for="form-field-group-field-group-label1"
661 >
662 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
663 <span
664 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
665 type="button"
666 role="button"
667 tabindex="0"
668 aria-label="More information for label 1 field"
669 aria-describedby="form-field-group-field-group-label1"
670 >
671 <span class="pf-v6-c-button__icon">
672 <svg
673 class="pf-v6-svg"
674 viewBox="0 0 1024 1024"
675 fill="currentColor"
676 aria-hidden="true"
677 role="img"
678 width="1em"
679 height="1em"
680 >
681 <path
682 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
683 />
684 </svg>
685 </span>
686 </span></span>
687 </div>
688 <div class="pf-v6-c-form__group-control">
689 <span class="pf-v6-c-form-control pf-m-required">
690 <input
691 required
692 type="text"
693 id="form-field-group-field-group-label1"
694 name="form-field-group-field-group-label1"
695 />
696 </span>
697 </div>
698 </div>
699 <div class="pf-v6-c-form__group">
700 <div class="pf-v6-c-form__group-label"><label
701 class="pf-v6-c-form__label"
702 for="form-field-group-field-group-label2"
703 >
704 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
705 <span
706 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
707 type="button"
708 role="button"
709 tabindex="0"
710 aria-label="More information for label 2 field"
711 aria-describedby="form-field-group-field-group-label2"
712 >
713 <span class="pf-v6-c-button__icon">
714 <svg
715 class="pf-v6-svg"
716 viewBox="0 0 1024 1024"
717 fill="currentColor"
718 aria-hidden="true"
719 role="img"
720 width="1em"
721 height="1em"
722 >
723 <path
724 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
725 />
726 </svg>
727 </span>
728 </span></span>
729 </div>
730 <div class="pf-v6-c-form__group-control">
731 <span class="pf-v6-c-form-control pf-m-required">
732 <input
733 required
734 type="text"
735 id="form-field-group-field-group-label2"
736 name="form-field-group-field-group-label2"
737 />
738 </span>
739 </div>
740 </div>
741 </div>
742 </div>
743 </form>
744
745 ```
746
747 ### Expandable and nested field groups
748
749 ```html
750 <form class="pf-v6-c-form" novalidate>
751 <div class="pf-v6-c-form__group">
752 <div class="pf-v6-c-form__group-label"><label
753 class="pf-v6-c-form__label"
754 for="form-expandable-field-groups-field1"
755 >
756 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
757 </div>
758 <div class="pf-v6-c-form__group-control">
759 <span class="pf-v6-c-form-control pf-m-required">
760 <input
761 required
762 type="text"
763 id="form-expandable-field-groups-field1"
764 name="form-expandable-field-groups-field1"
765 />
766 </span>
767 </div>
768 </div>
769
770 <div class="pf-v6-c-form__group">
771 <div class="pf-v6-c-form__group-label"><label
772 class="pf-v6-c-form__label"
773 for="form-expandable-field-groups-field2"
774 >
775 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
776 </div>
777 <div class="pf-v6-c-form__group-control">
778 <span class="pf-v6-c-form-control pf-m-required">
779 <input
780 required
781 type="text"
782 id="form-expandable-field-groups-field2"
783 name="form-expandable-field-groups-field2"
784 />
785 </span>
786 </div>
787 </div>
788
789 <div
790 class="pf-v6-c-form__field-group pf-m-expandable pf-m-expanded"
791 role="group"
792 aria-labelledby="form-expandable-field-groups-field-group-1-title"
793 >
794 <div class="pf-v6-c-form__field-group-toggle">
795 <div class="pf-v6-c-form__field-group-toggle-button">
796 <button
797 class="pf-v6-c-button pf-m-plain"
798 id="form-expandable-field-groups-field-group-1-toggle"
799 type="button"
800 aria-expanded="true"
801 aria-labelledby="form-expandable-field-groups-field-group-1-title form-expandable-field-groups-field-group-1-toggle"
802 aria-label="Details"
803 >
804 <span class="pf-v6-c-button__icon">
805 <span class="pf-v6-c-form__field-group-toggle-icon">
806 <svg
807 class="pf-v6-svg"
808 fill="currentColor"
809 viewBox="0 0 20 20"
810 aria-hidden="true"
811 role="img"
812 width="1em"
813 height="1em"
814 >
815 <path
816 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"
817 />
818 </svg>
819 </span>
820 </span>
821 </button>
822 </div>
823 </div>
824 <div class="pf-v6-c-form__field-group-header">
825 <div class="pf-v6-c-form__field-group-header-main">
826 <div class="pf-v6-c-form__field-group-header-title">
827 <div
828 class="pf-v6-c-form__field-group-header-title-text"
829 id="form-expandable-field-groups-field-group-1-title"
830 >Field group 1</div>
831 </div>
832 <div
833 class="pf-v6-c-form__field-group-header-description"
834 >Field group 1 description text</div>
835 </div>
836 <div class="pf-v6-c-form__field-group-header-actions">
837 <button class="pf-v6-c-button pf-m-secondary" type="button">
838 <span class="pf-v6-c-button__text">Action</span>
839 </button>
840 </div>
841 </div>
842 <div class="pf-v6-c-form__field-group-body">
843 <div
844 class="pf-v6-c-form__field-group pf-m-expandable pf-m-expanded"
845 role="group"
846 aria-labelledby="form-expandable-field-groups-nested-field-group-1-title"
847 >
848 <div class="pf-v6-c-form__field-group-toggle">
849 <div class="pf-v6-c-form__field-group-toggle-button">
850 <button
851 class="pf-v6-c-button pf-m-plain"
852 id="form-expandable-field-groups-nested-field-group-1-toggle"
853 type="button"
854 aria-expanded="true"
855 aria-labelledby="form-expandable-field-groups-nested-field-group-1-title form-expandable-field-groups-nested-field-group-1-toggle"
856 aria-label="Details"
857 >
858 <span class="pf-v6-c-button__icon">
859 <span class="pf-v6-c-form__field-group-toggle-icon">
860 <svg
861 class="pf-v6-svg"
862 fill="currentColor"
863 viewBox="0 0 20 20"
864 aria-hidden="true"
865 role="img"
866 width="1em"
867 height="1em"
868 >
869 <path
870 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"
871 />
872 </svg>
873 </span>
874 </span>
875 </button>
876 </div>
877 </div>
878 <div class="pf-v6-c-form__field-group-header">
879 <div class="pf-v6-c-form__field-group-header-main">
880 <div class="pf-v6-c-form__field-group-header-title">
881 <div
882 class="pf-v6-c-form__field-group-header-title-text"
883 id="form-expandable-field-groups-nested-field-group-1-title"
884 >Nested field group 1</div>
885 </div>
886 <div
887 class="pf-v6-c-form__field-group-header-description"
888 >Nested field group 1 description text</div>
889 </div>
890 <div class="pf-v6-c-form__field-group-header-actions">
891 <button class="pf-v6-c-button pf-m-secondary" type="button">
892 <span class="pf-v6-c-button__text">Action</span>
893 </button>
894 </div>
895 </div>
896 <div class="pf-v6-c-form__field-group-body">
897 <div class="pf-v6-c-form__group">
898 <div class="pf-v6-c-form__group-label"><label
899 class="pf-v6-c-form__label"
900 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-1-label1"
901 >
902 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span
903 class="pf-v6-c-form__label-required"
904 aria-hidden="true"
905 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
906 <span
907 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
908 type="button"
909 role="button"
910 tabindex="0"
911 aria-label="More information for label 1 field"
912 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-1-label1"
913 >
914 <span class="pf-v6-c-button__icon">
915 <svg
916 class="pf-v6-svg"
917 viewBox="0 0 1024 1024"
918 fill="currentColor"
919 aria-hidden="true"
920 role="img"
921 width="1em"
922 height="1em"
923 >
924 <path
925 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
926 />
927 </svg>
928 </span>
929 </span></span>
930 </div>
931 <div class="pf-v6-c-form__group-control">
932 <span class="pf-v6-c-form-control pf-m-required">
933 <input
934 required
935 type="text"
936 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-1-label1"
937 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-1-label1"
938 />
939 </span>
940 </div>
941 </div>
942 <div class="pf-v6-c-form__group">
943 <div class="pf-v6-c-form__group-label"><label
944 class="pf-v6-c-form__label"
945 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-1-label2"
946 >
947 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span
948 class="pf-v6-c-form__label-required"
949 aria-hidden="true"
950 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
951 <span
952 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
953 type="button"
954 role="button"
955 tabindex="0"
956 aria-label="More information for label 2 field"
957 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-1-label2"
958 >
959 <span class="pf-v6-c-button__icon">
960 <svg
961 class="pf-v6-svg"
962 viewBox="0 0 1024 1024"
963 fill="currentColor"
964 aria-hidden="true"
965 role="img"
966 width="1em"
967 height="1em"
968 >
969 <path
970 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
971 />
972 </svg>
973 </span>
974 </span></span>
975 </div>
976 <div class="pf-v6-c-form__group-control">
977 <span class="pf-v6-c-form-control pf-m-required">
978 <input
979 required
980 type="text"
981 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-1-label2"
982 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-1-label2"
983 />
984 </span>
985 </div>
986 </div>
987 </div>
988 </div>
989
990 <div
991 class="pf-v6-c-form__field-group pf-m-expandable"
992 role="group"
993 aria-labelledby="form-expandable-field-groups-nested-field-group-2-title"
994 >
995 <div class="pf-v6-c-form__field-group-toggle">
996 <div class="pf-v6-c-form__field-group-toggle-button">
997 <button
998 class="pf-v6-c-button pf-m-plain"
999 id="form-expandable-field-groups-nested-field-group-2-toggle"
1000 type="button"
1001 aria-expanded="false"
1002 aria-labelledby="form-expandable-field-groups-nested-field-group-2-title form-expandable-field-groups-nested-field-group-2-toggle"
1003 aria-label="Details"
1004 >
1005 <span class="pf-v6-c-button__icon">
1006 <span class="pf-v6-c-form__field-group-toggle-icon">
1007 <svg
1008 class="pf-v6-svg"
1009 fill="currentColor"
1010 viewBox="0 0 20 20"
1011 aria-hidden="true"
1012 role="img"
1013 width="1em"
1014 height="1em"
1015 >
1016 <path
1017 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"
1018 />
1019 </svg>
1020 </span>
1021 </span>
1022 </button>
1023 </div>
1024 </div>
1025 <div class="pf-v6-c-form__field-group-header">
1026 <div class="pf-v6-c-form__field-group-header-main">
1027 <div class="pf-v6-c-form__field-group-header-title">
1028 <div
1029 class="pf-v6-c-form__field-group-header-title-text"
1030 id="form-expandable-field-groups-nested-field-group-2-title"
1031 >Nested field group 2</div>
1032 </div>
1033 </div>
1034 <div class="pf-v6-c-form__field-group-header-actions">
1035 <button class="pf-v6-c-button pf-m-secondary" type="button">
1036 <span class="pf-v6-c-button__text">Action</span>
1037 </button>
1038 </div>
1039 </div>
1040 <div class="pf-v6-c-form__field-group-body" inert>
1041 <div class="pf-v6-c-form__group">
1042 <div class="pf-v6-c-form__group-label"><label
1043 class="pf-v6-c-form__label"
1044 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-2-label1"
1045 >
1046 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span
1047 class="pf-v6-c-form__label-required"
1048 aria-hidden="true"
1049 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1050 <span
1051 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1052 type="button"
1053 role="button"
1054 tabindex="0"
1055 aria-label="More information for label 1 field"
1056 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-2-label1"
1057 >
1058 <span class="pf-v6-c-button__icon">
1059 <svg
1060 class="pf-v6-svg"
1061 viewBox="0 0 1024 1024"
1062 fill="currentColor"
1063 aria-hidden="true"
1064 role="img"
1065 width="1em"
1066 height="1em"
1067 >
1068 <path
1069 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1070 />
1071 </svg>
1072 </span>
1073 </span></span>
1074 </div>
1075 <div class="pf-v6-c-form__group-control">
1076 <span class="pf-v6-c-form-control pf-m-required">
1077 <input
1078 required
1079 type="text"
1080 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-2-label1"
1081 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-2-label1"
1082 />
1083 </span>
1084 </div>
1085 </div>
1086 <div class="pf-v6-c-form__group">
1087 <div class="pf-v6-c-form__group-label"><label
1088 class="pf-v6-c-form__label"
1089 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-2-label2"
1090 >
1091 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span
1092 class="pf-v6-c-form__label-required"
1093 aria-hidden="true"
1094 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1095 <span
1096 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1097 type="button"
1098 role="button"
1099 tabindex="0"
1100 aria-label="More information for label 2 field"
1101 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-2-label2"
1102 >
1103 <span class="pf-v6-c-button__icon">
1104 <svg
1105 class="pf-v6-svg"
1106 viewBox="0 0 1024 1024"
1107 fill="currentColor"
1108 aria-hidden="true"
1109 role="img"
1110 width="1em"
1111 height="1em"
1112 >
1113 <path
1114 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1115 />
1116 </svg>
1117 </span>
1118 </span></span>
1119 </div>
1120 <div class="pf-v6-c-form__group-control">
1121 <span class="pf-v6-c-form-control pf-m-required">
1122 <input
1123 required
1124 type="text"
1125 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-2-label2"
1126 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-2-label2"
1127 />
1128 </span>
1129 </div>
1130 </div>
1131 </div>
1132 </div>
1133
1134 <div
1135 class="pf-v6-c-form__field-group pf-m-expandable"
1136 role="group"
1137 aria-labelledby="form-expandable-field-groups-nested-field-group-3-title"
1138 >
1139 <div class="pf-v6-c-form__field-group-toggle">
1140 <div class="pf-v6-c-form__field-group-toggle-button">
1141 <button
1142 class="pf-v6-c-button pf-m-plain"
1143 id="form-expandable-field-groups-nested-field-group-3-toggle"
1144 type="button"
1145 aria-expanded="false"
1146 aria-labelledby="form-expandable-field-groups-nested-field-group-3-title form-expandable-field-groups-nested-field-group-3-toggle"
1147 aria-label="Details"
1148 >
1149 <span class="pf-v6-c-button__icon">
1150 <span class="pf-v6-c-form__field-group-toggle-icon">
1151 <svg
1152 class="pf-v6-svg"
1153 fill="currentColor"
1154 viewBox="0 0 20 20"
1155 aria-hidden="true"
1156 role="img"
1157 width="1em"
1158 height="1em"
1159 >
1160 <path
1161 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"
1162 />
1163 </svg>
1164 </span>
1165 </span>
1166 </button>
1167 </div>
1168 </div>
1169 <div class="pf-v6-c-form__field-group-header">
1170 <div class="pf-v6-c-form__field-group-header-main">
1171 <div class="pf-v6-c-form__field-group-header-title">
1172 <div
1173 class="pf-v6-c-form__field-group-header-title-text"
1174 id="form-expandable-field-groups-nested-field-group-3-title"
1175 >Nested field group 3</div>
1176 </div>
1177 <div
1178 class="pf-v6-c-form__field-group-header-description"
1179 >Nested field group 3 description text</div>
1180 </div>
1181 <div class="pf-v6-c-form__field-group-header-actions">
1182 <button class="pf-v6-c-button pf-m-secondary" type="button">
1183 <span class="pf-v6-c-button__text">Action</span>
1184 </button>
1185 </div>
1186 </div>
1187 <div class="pf-v6-c-form__field-group-body" inert>
1188 <div class="pf-v6-c-form__group">
1189 <div class="pf-v6-c-form__group-label"><label
1190 class="pf-v6-c-form__label"
1191 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-3-label1"
1192 >
1193 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span
1194 class="pf-v6-c-form__label-required"
1195 aria-hidden="true"
1196 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1197 <span
1198 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1199 type="button"
1200 role="button"
1201 tabindex="0"
1202 aria-label="More information for label 1 field"
1203 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-3-label1"
1204 >
1205 <span class="pf-v6-c-button__icon">
1206 <svg
1207 class="pf-v6-svg"
1208 viewBox="0 0 1024 1024"
1209 fill="currentColor"
1210 aria-hidden="true"
1211 role="img"
1212 width="1em"
1213 height="1em"
1214 >
1215 <path
1216 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1217 />
1218 </svg>
1219 </span>
1220 </span></span>
1221 </div>
1222 <div class="pf-v6-c-form__group-control">
1223 <span class="pf-v6-c-form-control pf-m-required">
1224 <input
1225 required
1226 type="text"
1227 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-3-label1"
1228 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-3-label1"
1229 />
1230 </span>
1231 </div>
1232 </div>
1233 <div class="pf-v6-c-form__group">
1234 <div class="pf-v6-c-form__group-label"><label
1235 class="pf-v6-c-form__label"
1236 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-3-label2"
1237 >
1238 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span
1239 class="pf-v6-c-form__label-required"
1240 aria-hidden="true"
1241 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1242 <span
1243 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1244 type="button"
1245 role="button"
1246 tabindex="0"
1247 aria-label="More information for label 2 field"
1248 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-3-label2"
1249 >
1250 <span class="pf-v6-c-button__icon">
1251 <svg
1252 class="pf-v6-svg"
1253 viewBox="0 0 1024 1024"
1254 fill="currentColor"
1255 aria-hidden="true"
1256 role="img"
1257 width="1em"
1258 height="1em"
1259 >
1260 <path
1261 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1262 />
1263 </svg>
1264 </span>
1265 </span></span>
1266 </div>
1267 <div class="pf-v6-c-form__group-control">
1268 <span class="pf-v6-c-form-control pf-m-required">
1269 <input
1270 required
1271 type="text"
1272 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-3-label2"
1273 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-3-label2"
1274 />
1275 </span>
1276 </div>
1277 </div>
1278 </div>
1279 </div>
1280
1281 <div class="pf-v6-c-form__group">
1282 <div class="pf-v6-c-form__group-label"><label
1283 class="pf-v6-c-form__label"
1284 for="form-expandable-field-groups-nested-field1"
1285 >
1286 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
1287 </div>
1288 <div class="pf-v6-c-form__group-control">
1289 <span class="pf-v6-c-form-control pf-m-required">
1290 <input
1291 required
1292 type="text"
1293 id="form-expandable-field-groups-nested-field1"
1294 name="form-expandable-field-groups-nested-field1"
1295 />
1296 </span>
1297 </div>
1298 </div>
1299
1300 <div class="pf-v6-c-form__group">
1301 <div class="pf-v6-c-form__group-label"><label
1302 class="pf-v6-c-form__label"
1303 for="form-expandable-field-groups-nested-field2"
1304 >
1305 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
1306 </div>
1307 <div class="pf-v6-c-form__group-control">
1308 <span class="pf-v6-c-form-control pf-m-required">
1309 <input
1310 required
1311 type="text"
1312 id="form-expandable-field-groups-nested-field2"
1313 name="form-expandable-field-groups-nested-field2"
1314 />
1315 </span>
1316 </div>
1317 </div>
1318 </div>
1319 </div>
1320
1321 <div
1322 class="pf-v6-c-form__field-group pf-m-expandable"
1323 role="group"
1324 aria-labelledby="form-expandable-field-groups-field-group-2-title"
1325 >
1326 <div class="pf-v6-c-form__field-group-toggle">
1327 <div class="pf-v6-c-form__field-group-toggle-button">
1328 <button
1329 class="pf-v6-c-button pf-m-plain"
1330 id="form-expandable-field-groups-field-group-2-toggle"
1331 type="button"
1332 aria-expanded="false"
1333 aria-labelledby="form-expandable-field-groups-field-group-2-title form-expandable-field-groups-field-group-2-toggle"
1334 aria-label="Details"
1335 >
1336 <span class="pf-v6-c-button__icon">
1337 <span class="pf-v6-c-form__field-group-toggle-icon">
1338 <svg
1339 class="pf-v6-svg"
1340 fill="currentColor"
1341 viewBox="0 0 20 20"
1342 aria-hidden="true"
1343 role="img"
1344 width="1em"
1345 height="1em"
1346 >
1347 <path
1348 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"
1349 />
1350 </svg>
1351 </span>
1352 </span>
1353 </button>
1354 </div>
1355 </div>
1356 <div class="pf-v6-c-form__field-group-header">
1357 <div class="pf-v6-c-form__field-group-header-main">
1358 <div class="pf-v6-c-form__field-group-header-title">
1359 <div
1360 class="pf-v6-c-form__field-group-header-title-text"
1361 id="form-expandable-field-groups-field-group-2-title"
1362 >Field group 2</div>
1363 </div>
1364 <div
1365 class="pf-v6-c-form__field-group-header-description"
1366 >Field group 2 description text</div>
1367 </div>
1368 </div>
1369 <div class="pf-v6-c-form__field-group-body" inert>
1370 <div class="pf-v6-c-form__group">
1371 <div class="pf-v6-c-form__group-label"><label
1372 class="pf-v6-c-form__label"
1373 for="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label1"
1374 >
1375 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1376 <span
1377 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1378 type="button"
1379 role="button"
1380 tabindex="0"
1381 aria-label="More information for label 1 field"
1382 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label1"
1383 >
1384 <span class="pf-v6-c-button__icon">
1385 <svg
1386 class="pf-v6-svg"
1387 viewBox="0 0 1024 1024"
1388 fill="currentColor"
1389 aria-hidden="true"
1390 role="img"
1391 width="1em"
1392 height="1em"
1393 >
1394 <path
1395 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1396 />
1397 </svg>
1398 </span>
1399 </span></span>
1400 </div>
1401 <div class="pf-v6-c-form__group-control">
1402 <span class="pf-v6-c-form-control pf-m-required">
1403 <input
1404 required
1405 type="text"
1406 id="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label1"
1407 name="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label1"
1408 />
1409 </span>
1410 </div>
1411 </div>
1412 <div class="pf-v6-c-form__group">
1413 <div class="pf-v6-c-form__group-label"><label
1414 class="pf-v6-c-form__label"
1415 for="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label2"
1416 >
1417 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1418 <span
1419 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1420 type="button"
1421 role="button"
1422 tabindex="0"
1423 aria-label="More information for label 2 field"
1424 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label2"
1425 >
1426 <span class="pf-v6-c-button__icon">
1427 <svg
1428 class="pf-v6-svg"
1429 viewBox="0 0 1024 1024"
1430 fill="currentColor"
1431 aria-hidden="true"
1432 role="img"
1433 width="1em"
1434 height="1em"
1435 >
1436 <path
1437 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1438 />
1439 </svg>
1440 </span>
1441 </span></span>
1442 </div>
1443 <div class="pf-v6-c-form__group-control">
1444 <span class="pf-v6-c-form-control pf-m-required">
1445 <input
1446 required
1447 type="text"
1448 id="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label2"
1449 name="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label2"
1450 />
1451 </span>
1452 </div>
1453 </div>
1454 <div
1455 class="pf-v6-c-form__field-group"
1456 role="group"
1457 aria-labelledby="form-expandable-field-groups-field-group-3-title"
1458 >
1459 <div class="pf-v6-c-form__field-group-header">
1460 <div class="pf-v6-c-form__field-group-header-main">
1461 <div class="pf-v6-c-form__field-group-header-title">
1462 <div
1463 class="pf-v6-c-form__field-group-header-title-text"
1464 id="form-expandable-field-groups-field-group-3-title"
1465 >Nested field group 3</div>
1466 </div>
1467 </div>
1468 </div>
1469 <div class="pf-v6-c-form__field-group-body" inert>
1470 <div class="pf-v6-c-form__group">
1471 <div class="pf-v6-c-form__group-label"><label
1472 class="pf-v6-c-form__label"
1473 for="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label1"
1474 >
1475 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span
1476 class="pf-v6-c-form__label-required"
1477 aria-hidden="true"
1478 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1479 <span
1480 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1481 type="button"
1482 role="button"
1483 tabindex="0"
1484 aria-label="More information for label 1 field"
1485 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label1"
1486 >
1487 <span class="pf-v6-c-button__icon">
1488 <svg
1489 class="pf-v6-svg"
1490 viewBox="0 0 1024 1024"
1491 fill="currentColor"
1492 aria-hidden="true"
1493 role="img"
1494 width="1em"
1495 height="1em"
1496 >
1497 <path
1498 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1499 />
1500 </svg>
1501 </span>
1502 </span></span>
1503 </div>
1504 <div class="pf-v6-c-form__group-control">
1505 <span class="pf-v6-c-form-control pf-m-required">
1506 <input
1507 required
1508 type="text"
1509 id="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label1"
1510 name="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label1"
1511 />
1512 </span>
1513 </div>
1514 </div>
1515 <div class="pf-v6-c-form__group">
1516 <div class="pf-v6-c-form__group-label"><label
1517 class="pf-v6-c-form__label"
1518 for="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label2"
1519 >
1520 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span
1521 class="pf-v6-c-form__label-required"
1522 aria-hidden="true"
1523 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1524 <span
1525 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1526 type="button"
1527 role="button"
1528 tabindex="0"
1529 aria-label="More information for label 2 field"
1530 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label2"
1531 >
1532 <span class="pf-v6-c-button__icon">
1533 <svg
1534 class="pf-v6-svg"
1535 viewBox="0 0 1024 1024"
1536 fill="currentColor"
1537 aria-hidden="true"
1538 role="img"
1539 width="1em"
1540 height="1em"
1541 >
1542 <path
1543 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1544 />
1545 </svg>
1546 </span>
1547 </span></span>
1548 </div>
1549 <div class="pf-v6-c-form__group-control">
1550 <span class="pf-v6-c-form-control pf-m-required">
1551 <input
1552 required
1553 type="text"
1554 id="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label2"
1555 name="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label2"
1556 />
1557 </span>
1558 </div>
1559 </div>
1560 </div>
1561 </div>
1562 </div>
1563 </div>
1564
1565 <div
1566 class="pf-v6-c-form__field-group pf-m-expandable pf-m-expanded"
1567 role="group"
1568 aria-labelledby="form-expandable-field-groups-field-group-4-title"
1569 >
1570 <div class="pf-v6-c-form__field-group-toggle">
1571 <div class="pf-v6-c-form__field-group-toggle-button">
1572 <button
1573 class="pf-v6-c-button pf-m-plain"
1574 id="form-expandable-field-groups-field-group-4-toggle"
1575 type="button"
1576 aria-expanded="true"
1577 aria-labelledby="form-expandable-field-groups-field-group-4-title form-expandable-field-groups-field-group-4-toggle"
1578 aria-label="Details"
1579 >
1580 <span class="pf-v6-c-button__icon">
1581 <span class="pf-v6-c-form__field-group-toggle-icon">
1582 <svg
1583 class="pf-v6-svg"
1584 fill="currentColor"
1585 viewBox="0 0 20 20"
1586 aria-hidden="true"
1587 role="img"
1588 width="1em"
1589 height="1em"
1590 >
1591 <path
1592 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"
1593 />
1594 </svg>
1595 </span>
1596 </span>
1597 </button>
1598 </div>
1599 </div>
1600 <div class="pf-v6-c-form__field-group-header">
1601 <div class="pf-v6-c-form__field-group-header-main">
1602 <div class="pf-v6-c-form__field-group-header-title">
1603 <div
1604 class="pf-v6-c-form__field-group-header-title-text"
1605 id="form-expandable-field-groups-field-group-4-title"
1606 >Field group 3</div>
1607 </div>
1608 <div
1609 class="pf-v6-c-form__field-group-header-description"
1610 >Field group 3 description text</div>
1611 </div>
1612 </div>
1613 <div class="pf-v6-c-form__field-group-body">
1614 <div class="pf-v6-c-form__group">
1615 <div class="pf-v6-c-form__group-label"><label
1616 class="pf-v6-c-form__label"
1617 for="form-expandable-field-groups-form-expandable-field-groups-field-group-4-field1"
1618 >
1619 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
1620 </div>
1621 <div class="pf-v6-c-form__group-control">
1622 <span class="pf-v6-c-form-control pf-m-required">
1623 <input
1624 required
1625 type="text"
1626 id="form-expandable-field-groups-form-expandable-field-groups-field-group-4-field1"
1627 name="form-expandable-field-groups-form-expandable-field-groups-field-group-4-field1"
1628 />
1629 </span>
1630 </div>
1631 </div>
1632
1633 <div class="pf-v6-c-form__group">
1634 <div class="pf-v6-c-form__group-label"><label
1635 class="pf-v6-c-form__label"
1636 for="form-expandable-field-groups-form-expandable-field-groups-field-group-4-field2"
1637 >
1638 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
1639 </div>
1640 <div class="pf-v6-c-form__group-control">
1641 <span class="pf-v6-c-form-control pf-m-required">
1642 <input
1643 required
1644 type="text"
1645 id="form-expandable-field-groups-form-expandable-field-groups-field-group-4-field2"
1646 name="form-expandable-field-groups-form-expandable-field-groups-field-group-4-field2"
1647 />
1648 </span>
1649 </div>
1650 </div>
1651
1652 <div
1653 class="pf-v6-c-form__field-group"
1654 role="group"
1655 aria-labelledby="form-expandable-field-groups-nested-field-group-4-title"
1656 >
1657 <div class="pf-v6-c-form__field-group-header">
1658 <div class="pf-v6-c-form__field-group-header-main">
1659 <div class="pf-v6-c-form__field-group-header-title">
1660 <div
1661 class="pf-v6-c-form__field-group-header-title-text"
1662 id="form-expandable-field-groups-nested-field-group-4-title"
1663 >Nested field group 1 (non-expandable)</div>
1664 </div>
1665 </div>
1666 </div>
1667 <div class="pf-v6-c-form__field-group-body" inert>
1668 <div class="pf-v6-c-form__group">
1669 <div class="pf-v6-c-form__group-label"><label
1670 class="pf-v6-c-form__label"
1671 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-4-label1"
1672 >
1673 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span
1674 class="pf-v6-c-form__label-required"
1675 aria-hidden="true"
1676 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1677 <span
1678 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1679 type="button"
1680 role="button"
1681 tabindex="0"
1682 aria-label="More information for label 1 field"
1683 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-4-label1"
1684 >
1685 <span class="pf-v6-c-button__icon">
1686 <svg
1687 class="pf-v6-svg"
1688 viewBox="0 0 1024 1024"
1689 fill="currentColor"
1690 aria-hidden="true"
1691 role="img"
1692 width="1em"
1693 height="1em"
1694 >
1695 <path
1696 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1697 />
1698 </svg>
1699 </span>
1700 </span></span>
1701 </div>
1702 <div class="pf-v6-c-form__group-control">
1703 <span class="pf-v6-c-form-control pf-m-required">
1704 <input
1705 required
1706 type="text"
1707 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-4-label1"
1708 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-4-label1"
1709 />
1710 </span>
1711 </div>
1712 </div>
1713 <div class="pf-v6-c-form__group">
1714 <div class="pf-v6-c-form__group-label"><label
1715 class="pf-v6-c-form__label"
1716 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-4-label2"
1717 >
1718 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span
1719 class="pf-v6-c-form__label-required"
1720 aria-hidden="true"
1721 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1722 <span
1723 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1724 type="button"
1725 role="button"
1726 tabindex="0"
1727 aria-label="More information for label 2 field"
1728 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-4-label2"
1729 >
1730 <span class="pf-v6-c-button__icon">
1731 <svg
1732 class="pf-v6-svg"
1733 viewBox="0 0 1024 1024"
1734 fill="currentColor"
1735 aria-hidden="true"
1736 role="img"
1737 width="1em"
1738 height="1em"
1739 >
1740 <path
1741 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1742 />
1743 </svg>
1744 </span>
1745 </span></span>
1746 </div>
1747 <div class="pf-v6-c-form__group-control">
1748 <span class="pf-v6-c-form-control pf-m-required">
1749 <input
1750 required
1751 type="text"
1752 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-4-label2"
1753 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-4-label2"
1754 />
1755 </span>
1756 </div>
1757 </div>
1758 </div>
1759 </div>
1760
1761 <div
1762 class="pf-v6-c-form__field-group"
1763 role="group"
1764 aria-labelledby="form-expandable-field-groups-nested-field-group-5-title"
1765 >
1766 <div class="pf-v6-c-form__field-group-header">
1767 <div class="pf-v6-c-form__field-group-header-main">
1768 <div class="pf-v6-c-form__field-group-header-title">
1769 <div
1770 class="pf-v6-c-form__field-group-header-title-text"
1771 id="form-expandable-field-groups-nested-field-group-5-title"
1772 >Nested field group 2 (non-expandable)</div>
1773 </div>
1774 <div
1775 class="pf-v6-c-form__field-group-header-description"
1776 >Field group 2 description text</div>
1777 </div>
1778 </div>
1779 <div class="pf-v6-c-form__field-group-body" inert>
1780 <div class="pf-v6-c-form__group">
1781 <div class="pf-v6-c-form__group-label"><label
1782 class="pf-v6-c-form__label"
1783 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label1"
1784 >
1785 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span
1786 class="pf-v6-c-form__label-required"
1787 aria-hidden="true"
1788 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1789 <span
1790 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1791 type="button"
1792 role="button"
1793 tabindex="0"
1794 aria-label="More information for label 1 field"
1795 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label1"
1796 >
1797 <span class="pf-v6-c-button__icon">
1798 <svg
1799 class="pf-v6-svg"
1800 viewBox="0 0 1024 1024"
1801 fill="currentColor"
1802 aria-hidden="true"
1803 role="img"
1804 width="1em"
1805 height="1em"
1806 >
1807 <path
1808 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1809 />
1810 </svg>
1811 </span>
1812 </span></span>
1813 </div>
1814 <div class="pf-v6-c-form__group-control">
1815 <span class="pf-v6-c-form-control pf-m-required">
1816 <input
1817 required
1818 type="text"
1819 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label1"
1820 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label1"
1821 />
1822 </span>
1823 </div>
1824 </div>
1825 <div class="pf-v6-c-form__group">
1826 <div class="pf-v6-c-form__group-label"><label
1827 class="pf-v6-c-form__label"
1828 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label2"
1829 >
1830 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span
1831 class="pf-v6-c-form__label-required"
1832 aria-hidden="true"
1833 >&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1834 <span
1835 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1836 type="button"
1837 role="button"
1838 tabindex="0"
1839 aria-label="More information for label 2 field"
1840 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label2"
1841 >
1842 <span class="pf-v6-c-button__icon">
1843 <svg
1844 class="pf-v6-svg"
1845 viewBox="0 0 1024 1024"
1846 fill="currentColor"
1847 aria-hidden="true"
1848 role="img"
1849 width="1em"
1850 height="1em"
1851 >
1852 <path
1853 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1854 />
1855 </svg>
1856 </span>
1857 </span></span>
1858 </div>
1859 <div class="pf-v6-c-form__group-control">
1860 <span class="pf-v6-c-form-control pf-m-required">
1861 <input
1862 required
1863 type="text"
1864 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label2"
1865 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label2"
1866 />
1867 </span>
1868 </div>
1869 </div>
1870 </div>
1871 </div>
1872 </div>
1873 </div>
1874
1875 <div
1876 class="pf-v6-c-form__field-group"
1877 role="group"
1878 aria-labelledby="form-expandable-field-groups-nested-field-group-5-title"
1879 >
1880 <div class="pf-v6-c-form__field-group-header">
1881 <div class="pf-v6-c-form__field-group-header-main">
1882 <div class="pf-v6-c-form__field-group-header-title">
1883 <div
1884 class="pf-v6-c-form__field-group-header-title-text"
1885 id="form-expandable-field-groups-nested-field-group-5-title"
1886 >Field group 4 (non-expandable)</div>
1887 </div>
1888 <div
1889 class="pf-v6-c-form__field-group-header-description"
1890 >Field group 4 description text</div>
1891 </div>
1892 </div>
1893 <div class="pf-v6-c-form__field-group-body" inert>
1894 <div class="pf-v6-c-form__group">
1895 <div class="pf-v6-c-form__group-label"><label
1896 class="pf-v6-c-form__label"
1897 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label1"
1898 >
1899 <span class="pf-v6-c-form__label-text">Label 1</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1900 <span
1901 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1902 type="button"
1903 role="button"
1904 tabindex="0"
1905 aria-label="More information for label 1 field"
1906 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label1"
1907 >
1908 <span class="pf-v6-c-button__icon">
1909 <svg
1910 class="pf-v6-svg"
1911 viewBox="0 0 1024 1024"
1912 fill="currentColor"
1913 aria-hidden="true"
1914 role="img"
1915 width="1em"
1916 height="1em"
1917 >
1918 <path
1919 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1920 />
1921 </svg>
1922 </span>
1923 </span></span>
1924 </div>
1925 <div class="pf-v6-c-form__group-control">
1926 <span class="pf-v6-c-form-control pf-m-required">
1927 <input
1928 required
1929 type="text"
1930 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label1"
1931 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label1"
1932 />
1933 </span>
1934 </div>
1935 </div>
1936 <div class="pf-v6-c-form__group">
1937 <div class="pf-v6-c-form__group-label"><label
1938 class="pf-v6-c-form__label"
1939 for="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label2"
1940 >
1941 <span class="pf-v6-c-form__label-text">Label 2</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help">
1942 <span
1943 class="pf-v6-c-button pf-m-no-padding pf-m-plain"
1944 type="button"
1945 role="button"
1946 tabindex="0"
1947 aria-label="More information for label 2 field"
1948 aria-describedby="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label2"
1949 >
1950 <span class="pf-v6-c-button__icon">
1951 <svg
1952 class="pf-v6-svg"
1953 viewBox="0 0 1024 1024"
1954 fill="currentColor"
1955 aria-hidden="true"
1956 role="img"
1957 width="1em"
1958 height="1em"
1959 >
1960 <path
1961 d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"
1962 />
1963 </svg>
1964 </span>
1965 </span></span>
1966 </div>
1967 <div class="pf-v6-c-form__group-control">
1968 <span class="pf-v6-c-form-control pf-m-required">
1969 <input
1970 required
1971 type="text"
1972 id="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label2"
1973 name="form-expandable-field-groupsform-expandable-field-groups-nested-field-group-5-label2"
1974 />
1975 </span>
1976 </div>
1977 </div>
1978 </div>
1979 </div>
1980
1981 <div class="pf-v6-c-form__group">
1982 <div class="pf-v6-c-form__group-label"><label
1983 class="pf-v6-c-form__label"
1984 for="form-expandable-field-groups-field3"
1985 >
1986 <span class="pf-v6-c-form__label-text">Label 3</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
1987 </div>
1988 <div class="pf-v6-c-form__group-control">
1989 <span class="pf-v6-c-form-control pf-m-required">
1990 <input
1991 required
1992 type="text"
1993 id="form-expandable-field-groups-field3"
1994 name="form-expandable-field-groups-field3"
1995 />
1996 </span>
1997 </div>
1998 </div>
1999
2000 <div class="pf-v6-c-form__group">
2001 <div class="pf-v6-c-form__group-label"><label
2002 class="pf-v6-c-form__label"
2003 for="form-expandable-field-groups-field4"
2004 >
2005 <span class="pf-v6-c-form__label-text">Label 4</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label>
2006 </div>
2007 <div class="pf-v6-c-form__group-control">
2008 <span class="pf-v6-c-form-control pf-m-required">
2009 <input
2010 required
2011 type="text"
2012 id="form-expandable-field-groups-field4"
2013 name="form-expandable-field-groups-field4"
2014 />
2015 </span>
2016 </div>
2017 </div>
2018 </form>
2019
2020 ```
2021
2022 ## Documentation
2023
2024 To avoid the form label's required indicator or help tooltip icon from wrapping separately from the form label text, all whitespace characters between the last word of the label text, the required indicator (`.pf-v6-c-form__label-required`), and help tooltip icon (`.pf-v6-c-form__label-help`) must be removed, and `&nbsp;` characters added in between to maintain spacing. Also the help tooltip icon's `.pf-v6-c-form__label-required` element must be a `<span>` instead of a `<button>` due to layout limitations of the `<button>` element imposed by user agent styles.
2025
2026 ### Accessibility
2027
2028 | Attribute | Applied to | Outcome |
2029 | -- | -- | -- |
2030 | `for` | `<label>` | Each `<label>` must have a `for` attribute that matches its form field id. **Required** |
2031 | `id` | `<input type="radio/checkbox/text">`, `<select>`, `<textarea>` | Each `<form>` field must have an `id` attribute that matches its label's `for` value. **Required** |
2032 | `required` | `<input>`, `<select>`, `<textarea>` | Required fields must include these attributes. |
2033 | `aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | Form fields with related `.pf-v6-c-helper-text` require this attribute. Usage `<input aria-describedby="{helper_text_id}">`. |
2034 | `aria-invalid="true" aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | When form validation fails `aria-describedby` is used to communicate the error to the user. These attributes need to be handled with Javascript so that `aria-describedby` only references help text that explains the error, and so that `aria-invalid="true"` is only present when validation fails. For proper styling of errors `aria-invalid="true"` is required. |
2035 | `aria-hidden="true"` | `.pf-v6-c-form__label-required` | Hides the required indicator from assistive technologies. |
2036 | `role="group"` | `.pf-v6-c-form__group`, `.pf-v6-c-form__section`, `.pf-v6-c-form__field-group` | Provides group role for form groups, form sections, and form field groups. **Required for checkbox groups, form groups, form sections, and form field groups.** |
2037 | `role="radiogroup"` | `.pf-v6-c-form__group` | Provides group role for radio input groups. **Required for radio input groups** |
2038 | `role="button"` | `.pf-v6-c-form__group-label-help` | Provides button role for group label help spans. **Required for group label help.** |
2039 | `id` | `.pf-v6-c-form__group-label` | Generates an `id` for use in the `aria-labelledby` attribute in a checkbox or radio form group. |
2040 | `id` | `.pf-v6-c-form__field-group-title-text` | Generates an `id` for use in the `aria-labelledby` attribute in an expandable field group's toggle button. |
2041 | `id` | `.pf-v6-c-form__field-group-toggle-button > button` | Generates an `id` for use in the `aria-labelledby` attribute in an expandable field group's toggle button. |
2042 | `aria-labelledby="{label id}"` | `.pf-v6-c-form__group`, `.pf-v6-c-form__section`, `.pf-v6-c-form__field-group` | Provides an accessible label for form groups, form sections, and form field groups. **Required for form groups, form sections, and form field groups that contain labels.** |
2043 | `aria-label` | `.pf-v6-c-form__field-group-toggle-button > button` | Provides an accessible label for the field group toggle button. |
2044 | `aria-labelledby="{title id} {toggle button id}"` | `.pf-v6-c-form__field-group-toggle-button > button` | Provides an accessible label for the field group toggle button. |
2045 | `aria-expanded="true/false"` | `.pf-v6-c-form__field-group-toggle-button > button` | Indicates whether the field group body is visible or hidden. |
2046 | `id="{form_label_id}"` | `.pf-v6-c-form__label` | Generates an `id` for use in the `aria-describedby` attribute in a `.pf-v6-c-form__group-label-help`. |
2047 | `aria-label="{descriptive text}" aria-describedby="{form_label_id}"` | `.pf-v6-c-form__group-label-help` | Provides an accessible label on a button that provides additional information for a form element. |
2048
2049 ### Usage
2050
2051 | Class | Applied to | Outcome |
2052 | -- | -- | -- |
2053 | `.pf-v6-c-form` | `<form>` | Initiates a standard form. **Required** |
2054 | `.pf-v6-c-form__section` | `<div>, <section>` | Initiates a form section. |
2055 | `.pf-v6-c-form__section-title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>`, `<div>` | Initiates a form section title. |
2056 | `.pf-v6-c-form__group` | `<div>` | Initiates a form group. |
2057 | `.pf-v6-c-form__group-label` | `<div>` | Initiates a form group label. |
2058 | `.pf-v6-c-form__label` | `<label>`, `<span>` | Initiates a form label. **Required** |
2059 | `.pf-v6-c-form__label-text` | `<span>` | Initiates a form label text. **Required** |
2060 | `.pf-v6-c-form__label-required` | `<span>` | Initiates a form label required indicator. |
2061 | `.pf-v6-c-form__group-label-main` | `<div>` | Initiates a form group label main container. |
2062 | `.pf-v6-c-form__group-label-info` | `<div>` | Initiates a form group info label. |
2063 | `.pf-v6-c-form__group-label-help` | `<span>` | Initiates field level help. |
2064 | `.pf-v6-c-form__group-control` | `<div>` | Initiates a form group control section. |
2065 | `.pf-v6-c-form__actions` | `<div>` | Iniates a row of actions. |
2066 | `.pf-v6-c-form__helper-text` | `<p>`, `<div>` | Initiates a form helper text block. |
2067 | `.pf-v6-c-form__alert` | `<div>` | Initiates the form alert container for inline alerts. |
2068 | `.pf-v6-c-form__field-group` | `<div>` | Initiates a form field group. |
2069 | `.pf-v6-c-form__field-group-toggle` | `<div>` | Initiates the form field group toggle. |
2070 | `.pf-v6-c-form__field-group-toggle-button` | `<div>` | Initiates the form field group toggle button. |
2071 | `.pf-v6-c-form__field-group-toggle-icon` | `<span>` | Initiates the form field group toggle icon. |
2072 | `.pf-v6-c-form__field-group-header` | `<div>` | Initiates the form field group header. |
2073 | `.pf-v6-c-form__field-group-header-main` | `<div>` | Initiates the form field group main section. |
2074 | `.pf-v6-c-form__field-group-header-title` | `<div>` | Initiates the form field group title. |
2075 | `.pf-v6-c-form__field-group-header-title-text` | `<div>` | Initiates the form field group title text. |
2076 | `.pf-v6-c-form__field-group-header-description` | `<div>` | Initiates the form field group description. |
2077 | `.pf-v6-c-form__field-group-header-actions` | `<div>` | Initiates the form field group actions container. |
2078 | `.pf-v6-c-form__field-group-body` | `<div>` | Initiates the form field group body. |
2079 | `.pf-m-horizontal{-on-[xs, sm, md, lg, xl, 2xl]}` | `.pf-v6-c-form` | Modifies the form for a horizontal layout at an optional breakpoint. The default breakpoint is `-md`. |
2080 | `.pf-m-limit-width` | `.pf-v6-c-form` | Limits the overall max-width of the form. Configurable by defining `--pf-v6-c-form--m-limit-width--MaxWidth`. |
2081 | `.pf-m-info` | `.pf-v6-c-form__group-label` | Modifies the form group label to contain form group label info. |
2082 | `.pf-m-action` | `.pf-v6-c-form__group` | Modifies form group margin-top. |
2083 | `.pf-m-disabled` | `.pf-v6-c-form__label` | Modifies form label to show disabled state. |
2084 | `.pf-m-no-padding-top` | `.pf-v6-c-form__group-label` | Removes top padding from the label element for labels adjacent to an element that isn't a form control. |
2085 | `.pf-m-inline` | `.pf-v6-c-form__group-control` | Modifies form group children to be inline (this is primarily for radio buttons and checkboxes). |
2086 | `.pf-m-stack` | `.pf-v6-c-form__group-control` | Modifies form group children to be stacked with space between children. |
2087 | `.pf-m-expandable` | `.pf-v6-c-form__field-group` | Modifies a field group to be expandable. Currently used as the opt-in for animating the expanded state. |
2088 | `.pf-m-expanded` | `.pf-v6-c-form__field-group` | Modifies an expandable field group for the expanded state. |
2089 | `--pf-v6-c-form--m-limit-width--MaxWidth` | `.pf-v6-c-form.pf-m-limit-width` | Sets a custom `max-width` for a width limited form. |