1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919
|
---
id: Inline edit
section: components
cssPrefix: pf-v6-c-inline-edit
---## Introduction
**Inline edit** is a utilitarian component that has two core elements, `.pf-v6-c-inline-edit__value` and `.pf-v6-c-inline-edit__input` and is based on a simple concept. When **value** is visible, **input** is hidden, and vice versa.
### Generic groups
`.pf-v6-c-inline-edit__group`s provide basic layout support and have several available modifiers (`.pf-m-action-group`, `.pf-m-icon-group`).
### Actions
**Actions** (`.pf-v6-c-inline-edit__action`) are hidden by default and exposed when a region of `.pf-v6-c-inline-edit` becomes active. The default visibility of an **action** or **action group** can be inversed by adding `.pf-m-enable-editable`. `.pf-m-enable-editable` flags an element or group of elements as the controlling agents for enabling editable content and therefore is visible by default and hidden when inline editing is enabled.
## Examples
Inline edit **toggle** can be placed anywhere within `.pf-v6-c-inline-edit`. It initiates the editability of elements. When an element becomes editable, **toggle** is hidden.
### Inline edit toggle
```html
<div class="pf-v6-c-inline-edit" id="inline-edit-toggle-example">
<div class="pf-v6-c-inline-edit__action pf-m-enable-editable">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
id="inline-edit-toggle-example-edit-button"
aria-label="Edit"
aria-labelledby="inline-edit-toggle-example-edit-button inline-edit-toggle-example-label"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
```
Inline edit **value** can be placed anywhere within `.pf-v6-c-inline-edit`. It is visible by default and hidden when inline edit becomes **editable**.
### Inline edit value
```html
<div class="pf-v6-c-inline-edit" id="inline-edit-value-example">
<div class="pf-v6-c-inline-edit__value">Static value</div>
</div>
```
Inline edit **action-group** contains save and cancel actions and is only visible when inline edit is **editable**.
### Inline edit action group
```html
<div
class="pf-v6-c-inline-edit pf-m-inline-editable"
id="inline-edit-action-group-example"
>
<div class="pf-v6-c-inline-edit__group pf-m-action-group">
<div class="pf-v6-c-inline-edit__action">
<button class="pf-v6-c-button pf-m-primary" type="button">
<span class="pf-v6-c-button__text">Save</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button class="pf-v6-c-button pf-m-secondary" type="button">
<span class="pf-v6-c-button__text">Cancel</span>
</button>
</div>
</div>
</div>
```
### Inline edit action group icon buttons
```html
<div
class="pf-v6-c-inline-edit pf-m-inline-editable"
id="inline-edit-action-group-icon-buttons-example"
>
<div class="pf-v6-c-inline-edit__group pf-m-action-group pf-m-icon-group">
<div class="pf-v6-c-inline-edit__action pf-m-valid">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Save edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-check" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Cancel edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
</div>
```
### Single inline edit (default)
```html
<form class="pf-v6-c-inline-edit" id="single-inline-edit-example">
<div class="pf-v6-c-inline-edit__group">
<div
class="pf-v6-c-inline-edit__value"
id="single-inline-edit-example-label"
>Static value</div>
<div class="pf-v6-c-inline-edit__action pf-m-enable-editable">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
id="single-inline-edit-example-edit-button"
aria-label="Edit"
aria-labelledby="single-inline-edit-example-edit-button single-inline-edit-example-label"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
<div class="pf-v6-c-inline-edit__group">
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control">
<input
type="text"
value="Static value"
aria-label="Editable text input"
/>
</span>
</div>
<div class="pf-v6-c-inline-edit__group pf-m-action-group pf-m-icon-group">
<div class="pf-v6-c-inline-edit__action pf-m-valid">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Save edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-check" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Cancel edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
</div>
</form>
```
### Single inline edit (active)
```html
<form
class="pf-v6-c-inline-edit pf-m-inline-editable"
id="single-editable-example"
>
<div class="pf-v6-c-inline-edit__group">
<div
class="pf-v6-c-inline-edit__value"
id="single-editable-example-label"
>Static value</div>
<div class="pf-v6-c-inline-edit__action pf-m-enable-editable">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
id="single-editable-example-edit-button"
aria-label="Edit"
aria-labelledby="single-editable-example-edit-button single-editable-example-label"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
<div class="pf-v6-c-inline-edit__group">
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control">
<input
type="text"
value="Static value"
aria-label="Editable text input"
/>
</span>
</div>
<div class="pf-v6-c-inline-edit__group pf-m-action-group pf-m-icon-group">
<div class="pf-v6-c-inline-edit__action pf-m-valid">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Save edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-check" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Cancel edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
</div>
</form>
```
### Free form edit
```html
<div class="pf-v6-c-inline-edit" id="free-form-edit-example">
<div
class="pf-v6-c-inline-edit__editable-text"
role="textbox"
id="free-form-edit-example-text"
aria-label="Editable text"
>Free form text</div>
</div>
```
### Single inline edit with label (default)
```html
<form class="pf-v6-c-inline-edit" id="single-inline-edit-with-label-example">
<div class="pf-v6-c-inline-edit__group">
<label
class="pf-v6-c-inline-edit__label"
id="single-inline-edit-with-label-example-label"
for="single-inline-edit-with-label-example-input"
>Single inline edit group</label>
<div class="pf-v6-c-inline-edit__action pf-m-enable-editable">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
id="single-inline-edit-with-label-example-edit-button"
aria-label="Edit"
aria-labelledby="single-inline-edit-with-label-example-label single-inline-edit-with-label-example-edit-button"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
<div class="pf-v6-c-inline-edit__value">Static value</div>
<div class="pf-v6-c-inline-edit__group">
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control">
<input
type="text"
id="single-inline-edit-with-label-example-input"
value="Static value"
aria-label="Editable text input"
/>
</span>
</div>
<div class="pf-v6-c-inline-edit__group pf-m-action-group pf-m-icon-group">
<div class="pf-v6-c-inline-edit__action pf-m-valid">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Save edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-check" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Cancel edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
</div>
</form>
```
### State valid
```html
<div
class="pf-v6-c-inline-edit pf-m-inline-editable"
id="inline-edit-state-valid"
>
<div class="pf-v6-c-inline-edit__group">
<label
class="pf-v6-c-inline-edit__label"
id="inline-edit-state-valid-label"
for="inline-edit-state-valid-input"
>Valid example</label>
<div class="pf-v6-c-inline-edit__action pf-m-enable-editable">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
id="inline-edit-state-valid-edit-button"
aria-label="Edit"
aria-labelledby="inline-edit-state-valid-label inline-edit-state-valid-edit-button"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
<div class="pf-v6-c-inline-edit__value">Static value</div>
<div class="pf-v6-c-inline-edit__group">
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control">
<input
type="text"
value="Static value"
aria-label="Editable text input"
/>
</span>
</div>
<div class="pf-v6-c-inline-edit__group pf-m-action-group pf-m-icon-group">
<div class="pf-v6-c-inline-edit__action pf-m-valid">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Save edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-check" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Cancel edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
</div>
</div>
```
### State invalid
```html
<div
class="pf-v6-c-inline-edit pf-m-inline-editable"
id="inline-edit-state-invalid"
>
<div class="pf-v6-c-inline-edit__group">
<label
class="pf-v6-c-inline-edit__label"
id="inline-edit-state-invalid-label"
for="inline-edit-state-invalid-input"
>Invalid example</label>
<div class="pf-v6-c-inline-edit__action pf-m-enable-editable">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
id="inline-edit-state-invalid-edit-button"
aria-label="Edit"
aria-labelledby="inline-edit-state-invalid-label inline-edit-state-invalid-edit-button"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
<div class="pf-v6-c-inline-edit__value">Static value</div>
<div class="pf-v6-c-inline-edit__group">
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control pf-m-required pf-m-error">
<input
required
value="Invalid state"
aria-invalid="true"
aria-label="Error state input example"
/>
<span class="pf-v6-c-form-control__utilities">
<span class="pf-v6-c-form-control__icon pf-m-status">
<i class="fas fa-exclamation-circle" aria-hidden="true"></i>
</span>
</span>
</span>
</div>
<div class="pf-v6-c-inline-edit__group pf-m-action-group pf-m-icon-group">
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
disabled
aria-label="Save edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-check" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Cancel edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
</div>
</div>
```
### Inline edit table row
```html
<form class="pf-v6-c-inline-edit" id="bulk-edit-table-example">
<table
class="pf-v6-c-table pf-m-grid-lg"
role="grid"
aria-label="Inline edit table row example"
id="inline-edit-table-row-example"
>
<caption class="pf-v6-c-table__caption">This is the table caption</caption>
<thead class="pf-v6-c-table__thead">
<tr class="pf-v6-c-table__tr" role="row">
<th class="pf-v6-c-table__th" role="columnheader">Text input</th>
<th class="pf-v6-c-table__th" role="columnheader">Disabled text input</th>
<th class="pf-v6-c-table__th" role="columnheader">Checkboxes</th>
<th class="pf-v6-c-table__th" role="columnheader">Radios</th>
<th class="pf-v6-c-table__th" role="columnheader">Number</th>
<th
class="pf-v6-c-table__th pf-v6-c-table__cell-empty"
role="columnheader"
scope="col"
>
<span class="pf-v6-screen-reader">Actions</span>
</th>
<th
class="pf-v6-c-table__th pf-v6-c-table__cell-empty"
role="columnheader"
scope="col"
>
<span class="pf-v6-screen-reader">Actions</span>
</th>
</tr>
</thead>
<tbody class="pf-v6-c-table__tbody" role="rowgroup">
<tr class="pf-v6-c-table__tr pf-m-inline-editable" role="row">
<th
class="pf-v6-c-table__th"
role="columnheader"
data-label="Text input"
>
<div class="pf-v6-c-inline-edit__value">Text input description content</div>
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control">
<input
type="text"
value="Text input description content"
id="bulk-edit-table-example-row-1-text-input"
aria-label="Text input for row 1"
/>
</span>
</div>
</th>
<td
class="pf-v6-c-table__td"
role="cell"
data-label="Disabled text input"
>
<div
class="pf-v6-c-inline-edit__value"
>Text input disabled, description content</div>
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control pf-m-disabled">
<input
disabled
type="text"
value="Text input disabled, description content"
id="bulk-edit-table-example-row-1-text-input-disabled"
aria-label="Disabled text input for row 1"
/>
</span>
</div>
</td>
<td class="pf-v6-c-table__td" role="cell" data-label="Checkboxes">
<div class="pf-v6-c-inline-edit__value">Check 1, Check 2</div>
<div
class="pf-v6-c-inline-edit__group pf-m-column"
role="group"
aria-label="Checkbox group for row 1"
>
<div class="pf-v6-c-inline-edit__input">
<div class="pf-v6-c-check">
<input
class="pf-v6-c-check__input"
type="checkbox"
id="bulk-edit-table-example-row-1-check-1"
name="bulk-edit-table-example-row-1-example-check"
/>
<label
class="pf-v6-c-check__label"
for="bulk-edit-table-example-row-1-check-1"
>Check 1</label>
</div>
</div>
<div class="pf-v6-c-inline-edit__input">
<div class="pf-v6-c-check">
<input
class="pf-v6-c-check__input"
type="checkbox"
id="bulk-edit-table-example-row-1-check-2"
name="bulk-edit-table-example-row-1-example-check-2"
/>
<label
class="pf-v6-c-check__label"
for="bulk-edit-table-example-row-1-check-2"
>Check 2</label>
</div>
</div>
</div>
</td>
<td class="pf-v6-c-table__td" role="cell" data-label="Radios">
<div class="pf-v6-c-inline-edit__value">Radio 1, Radio 2</div>
<div
class="pf-v6-c-inline-edit__group pf-m-column"
role="radiogroup"
aria-label="Radio group for row 1"
>
<div class="pf-v6-c-inline-edit__input">
<div class="pf-v6-c-radio">
<input
class="pf-v6-c-radio__input"
type="radio"
id="bulk-edit-table-example-row-1-radio-1"
name="bulk-edit-table-example-row-1-example-radio"
/>
<label
class="pf-v6-c-radio__label"
for="bulk-edit-table-example-row-1-radio-1"
>Radio 1</label>
</div>
</div>
<div class="pf-v6-c-inline-edit__input">
<div class="pf-v6-c-radio">
<input
class="pf-v6-c-radio__input"
type="radio"
id="bulk-edit-table-example-row-1-radio-2"
name="bulk-edit-table-example-row-1-example-radio"
/>
<label
class="pf-v6-c-radio__label"
for="bulk-edit-table-example-row-1-radio-2"
>Radio 2</label>
</div>
</div>
</div>
</td>
<td class="pf-v6-c-table__td" role="cell" data-label="Number">
<div class="pf-v6-c-inline-edit__value">2</div>
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control">
<input
type="number"
value="2"
id="bulk-edit-table-example-row-1-number-input"
aria-label="Number input for row 1"
/>
</span>
</div>
</td>
<td
class="pf-v6-c-table__td pf-v6-c-table__inline-edit-action"
role="cell"
>
<div
class="pf-v6-c-inline-edit__group pf-m-action-group pf-m-icon-group"
>
<div class="pf-v6-c-inline-edit__action pf-m-valid">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Save edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-check" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Cancel edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
<div class="pf-v6-c-inline-edit__action pf-m-enable-editable">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
id="bulk-edit-table-example-row-1-edit-button"
aria-label="Edit"
aria-labelledby="bulk-edit-table-example-label bulk-edit-table-example-row-1-edit-button"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</span>
</button>
</div>
</td>
<td class="pf-v6-c-table__td pf-v6-c-table__action">
<button
class="pf-v6-c-menu-toggle pf-m-plain"
type="button"
aria-expanded="false"
aria-label="Table actions"
>
<span class="pf-v6-c-menu-toggle__icon">
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
</span>
</button>
</td>
</tr>
<tr class="pf-v6-c-table__tr" role="row">
<th
class="pf-v6-c-table__th"
role="columnheader"
data-label="Text input"
>
<div class="pf-v6-c-inline-edit__value">Text input description content</div>
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control">
<input
type="text"
value="Text input description content"
id="bulk-edit-table-example-row-2-text-input"
aria-label="Text input for row 2"
/>
</span>
</div>
</th>
<td
class="pf-v6-c-table__td"
role="cell"
data-label="Disabled text input"
>
<div
class="pf-v6-c-inline-edit__value"
>Text input disabled, description content</div>
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control pf-m-disabled">
<input
disabled
type="text"
value="Text input disabled, description content"
id="bulk-edit-table-example-row-2-text-input-disabled"
aria-label="Disabled text input for row 2"
/>
</span>
</div>
</td>
<td class="pf-v6-c-table__td" role="cell" data-label="Checkboxes">
<div class="pf-v6-c-inline-edit__value">Check 1, Check 2</div>
<div
class="pf-v6-c-inline-edit__group pf-m-column"
role="group"
aria-label="Checkbox group for row 2"
>
<div class="pf-v6-c-inline-edit__input">
<div class="pf-v6-c-check">
<input
class="pf-v6-c-check__input"
type="checkbox"
id="bulk-edit-table-example-row-2-check-1"
name="bulk-edit-table-example-row-2-example-check"
/>
<label
class="pf-v6-c-check__label"
for="bulk-edit-table-example-row-2-check-1"
>Check 1</label>
</div>
</div>
<div class="pf-v6-c-inline-edit__input">
<div class="pf-v6-c-check">
<input
class="pf-v6-c-check__input"
type="checkbox"
id="bulk-edit-table-example-row-2-check-2"
name="bulk-edit-table-example-row-2-example-check-2"
/>
<label
class="pf-v6-c-check__label"
for="bulk-edit-table-example-row-2-check-2"
>Check 2</label>
</div>
</div>
</div>
</td>
<td class="pf-v6-c-table__td" role="cell" data-label="Radios">
<div class="pf-v6-c-inline-edit__value">Radio 1, Radio 2</div>
<div
class="pf-v6-c-inline-edit__group pf-m-column"
role="radiogroup"
aria-label="Radio group for row 2"
>
<div class="pf-v6-c-inline-edit__input">
<div class="pf-v6-c-radio">
<input
class="pf-v6-c-radio__input"
type="radio"
id="bulk-edit-table-example-row-2-radio-1"
name="bulk-edit-table-example-row-2-example-radio-1"
/>
<label
class="pf-v6-c-radio__label"
for="bulk-edit-table-example-row-2-radio-1"
>Radio 1</label>
</div>
</div>
<div class="pf-v6-c-inline-edit__input">
<div class="pf-v6-c-radio">
<input
class="pf-v6-c-radio__input"
type="radio"
id="bulk-edit-table-example-row-2-radio-2"
name="bulk-edit-table-example-row-2-example-radio-2"
/>
<label
class="pf-v6-c-radio__label"
for="bulk-edit-table-example-row-2-radio-2"
>Radio 2</label>
</div>
</div>
</div>
</td>
<td class="pf-v6-c-table__td" role="cell" data-label="Number">
<div class="pf-v6-c-inline-edit__value">2</div>
<div class="pf-v6-c-inline-edit__input">
<span class="pf-v6-c-form-control">
<input
type="number"
value="2"
id="bulk-edit-table-example-row-2-number-input"
aria-label="Number input for row 2"
/>
</span>
</div>
</td>
<td
class="pf-v6-c-table__td pf-v6-c-table__inline-edit-action"
role="cell"
>
<div
class="pf-v6-c-inline-edit__group pf-m-action-group pf-m-icon-group"
>
<div class="pf-v6-c-inline-edit__action pf-m-valid">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Save edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-check" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="pf-v6-c-inline-edit__action">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
aria-label="Cancel edits"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
<div class="pf-v6-c-inline-edit__action pf-m-enable-editable">
<button
class="pf-v6-c-button pf-m-plain"
type="button"
id="bulk-edit-table-example-row-2-edit-button"
aria-label="Edit"
aria-labelledby="bulk-edit-table-example-label bulk-edit-table-example-row-2-edit-button"
>
<span class="pf-v6-c-button__icon">
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
</span>
</button>
</div>
</td>
<td class="pf-v6-c-table__td pf-v6-c-table__action">
<button
class="pf-v6-c-menu-toggle pf-m-plain"
type="button"
aria-expanded="false"
aria-label="Table actions"
>
<span class="pf-v6-c-menu-toggle__icon">
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
</span>
</button>
</td>
</tr>
</tbody>
</table>
</form>
```
## Documentation
### Accessibility
All accessibility requirements for inputs apply to elements within inline edit.
| Attribute | Applied to | Outcome |
| -- | -- | -- |
| `id` | `[labelling element]` | Provides a reference for toggle button and/or editable content. |
| `aria-label="descriptive text"` | `.pf-v6-c-inline-edit__toggle > button` | Provides an accessible description for toggle button. **Required** |
| `aria-labelledby="[labelling element] [toggle button id]"` | `.pf-v6-c-inline-edit__toggle > button` | Provides an accessible description for toggle button. **Required** |
| `aria-label="descriptive text"` | `[radio button group]` | Provides an accessible description for radio groups. **Required** |
| `contenteditable="true"` | `.pf-v6-c-inline-edit__editable-text` | Ensures the text node is editable. |
| `role="textbox"` | `.pf-v6-c-inline-edit__editable-text` | Identifies an element that allows the input of free-form text. |
| `role="radiogroup"` | `[radio button group]` | Provides an accessible role for radio buttons groups. **Required** |
### Usage
| Class | Applied to | Outcome |
| -- | -- | -- |
| `.pf-v6-c-inline-edit` | `<form>`, `<div>` | Initiates the inline edit component. **Required** |
| `.pf-v6-c-inline-edit__value` | `*` | Initiates an inline edit value. **Required** |
| `.pf-v6-c-inline-edit__input` | `*` | Initiates an inline edit input. **Required** |
| `.pf-v6-c-inline-edit__editable-text` | `*` | Initiates an inline editable text element. |
| `.pf-v6-c-inline-edit__label` | `*` | Initiates an inline edit label. |
| `.pf-v6-c-inline-edit__action` | `*` | Initiates an inline edit action (visible when inline edit region is active). **Required** |
| `.pf-m-inline-editable` | `.pf-v6-c-inline-edit`, `.pf-v6-c-inline-edit [block level element]` | Modifies an inline edit region for editable state. |
| `.pf-m-action-group` | `.pf-v6-c-inline-edit__group` | Modifies group for action group. |
| `.pf-m-icon-group` | `.pf-v6-c-inline-edit__group` | Modifies an action group item spacing. |
| `.pf-m-column` | `.pf-v6-c-inline-edit__group` | Modifies an action group flex direction. |
| `.pf-m-footer` | `.pf-v6-c-inline-edit__group` | Modifies an inline edit group margin-top. |
| `.pf-m-bold` | `.pf-v6-c-inline-edit__label` | Modifies an inline edit label's `font-weight`. |
| `.pf-m-valid` | `.pf-v6-c-inline-edit__action` | Modifies the action button state. |
| `.pf-m-enable-editable` | `.pf-v6-c-inline-edit__action` | Exposes an inline edit action by default. |
|