UNPKG

@patternfly/patternfly

Version:

Assets, source, tooling, and content for PatternFly 4

1,072 lines (1,045 loc) • 79 kB
--- id: Form section: components subsection: forms ---## Demos ### Basic ```html <form class="pf-v6-c-form" novalidate> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-basic-title"> <span class="pf-v6-c-form__label-text">Title</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-placeholder"> <select id="form-demo-basic-title" name="form-demo-basic-title"> <option value selected>Selectable one</option> <option value="Mr">Mr</option> <option value="Miss">Miss</option> <option value="Mrs">Mrs</option> <option value="Ms">Ms</option> <option value="Dr">Dr</option> <option value="Dr" disabled>Disabled option</option> <option value="Other">Other</option> </select> <span class="pf-v6-c-form-control__utilities"> <span class="pf-v6-c-form-control__toggle-icon"> <i class="fas fa-caret-down" aria-hidden="true"></i> </span> </span> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-basic-name"> <span class="pf-v6-c-form__label-text">Full name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-basic-name" name="form-demo-basic-name" aria-describedby="form-demo-basic-name-helper" /> </span> <div class="pf-v6-c-form__helper-text" aria-live="polite"> <div class="pf-v6-c-helper-text"> <div class="pf-v6-c-helper-text__item" id="form-demo-basic-name-helper" > <span class="pf-v6-c-helper-text__item-text" >Include your middle name if you have one.</span> </div> </div> </div> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-basic-email"> <span class="pf-v6-c-form__label-text">Email</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control"> <input type="email" id="form-demo-basic-email" name="form-demo-basic-email" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-basic-phone"> <span class="pf-v6-c-form__label-text">Phone number</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"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for phone number field" aria-describedby="form-demo-basic-phone" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="tel" placeholder="555-555-5555" id="form-demo-basic-phone" name="form-demo-basic-phone" /> </span> </div> </div> <div class="pf-v6-c-form__group" role="group" aria-labelledby="form-demo-basicform-demo-basic-contact-legend" > <div class="pf-v6-c-form__group-label" id="form-demo-basicform-demo-basic-contact-legend" ><span class="pf-v6-c-form__label"> <span class="pf-v6-c-form__label-text">How can we contact you?</span></span> </div> <div class="pf-v6-c-form__group-control pf-m-inline"> <div class="pf-v6-c-check"> <input class="pf-v6-c-check__input" type="checkbox" id="form-demo-basic-contact-check-1" name="form-demo-basic-contact-check-1" /> <label class="pf-v6-c-check__label" for="form-demo-basic-contact-check-1" >Email</label> </div> <div class="pf-v6-c-check"> <input class="pf-v6-c-check__input" type="checkbox" id="form-demo-basic-contact-check-2" name="form-demo-basic-contact-check-2" /> <label class="pf-v6-c-check__label" for="form-demo-basic-contact-check-2" >Phone</label> </div> <div class="pf-v6-c-check"> <input class="pf-v6-c-check__input" type="checkbox" id="form-demo-basic-contact-check-3" name="form-demo-basic-contact-check-3" /> <label class="pf-v6-c-check__label" for="form-demo-basic-contact-check-3" >Mail</label> </div> </div> </div> <div class="pf-v6-c-form__group" role="radiogroup" aria-labelledby="form-demo-basicform-demo-basic-time-zone-legend" > <div class="pf-v6-c-form__group-label" id="form-demo-basicform-demo-basic-time-zone-legend" ><span class="pf-v6-c-form__label"> <span class="pf-v6-c-form__label-text">Time zone</span></span> </div> <div class="pf-v6-c-form__group-control pf-m-inline"> <div class="pf-v6-c-radio"> <input class="pf-v6-c-radio__input" type="radio" id="form-demo-basic-time-zone-radio-1" name="form-demo-basic-time-zone-radio" /> <label class="pf-v6-c-radio__label" for="form-demo-basic-time-zone-radio-1" >Eastern</label> </div> <div class="pf-v6-c-radio"> <input class="pf-v6-c-radio__input" type="radio" id="form-demo-basic-time-zone-radio-2" name="form-demo-basic-time-zone-radio" /> <label class="pf-v6-c-radio__label" for="form-demo-basic-time-zone-radio-2" >Central</label> </div> <div class="pf-v6-c-radio"> <input class="pf-v6-c-radio__input" type="radio" id="form-demo-basic-time-zone-radio-3" name="form-demo-basic-time-zone-radio" /> <label class="pf-v6-c-radio__label" for="form-demo-basic-time-zone-radio-3" >Pacific</label> </div> </div> </div> <div class="pf-v6-c-form__group pf-m-action"> <div class="pf-v6-c-form__group-control"> <div class="pf-v6-c-form__actions"> <button class="pf-v6-c-button pf-m-primary" type="submit"> <span class="pf-v6-c-button__text">Submit</span> </button> <button class="pf-v6-c-button pf-m-link" type="button"> <span class="pf-v6-c-button__text">Cancel</span> </button> </div> </div> </div> </form> ``` ### Horizontal ```html <form class="pf-v6-c-form pf-m-horizontal" novalidate> <div class="pf-v6-c-form__group -name"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-horizontal-name"> <span class="pf-v6-c-form__label-text">Full name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-horizontal-name" name="form-demo-horizontal-name" aria-describedby="form-demo-horizontal-name-helper" /> </span> <div class="pf-v6-c-form__helper-text" aria-live="polite"> <div class="pf-v6-c-helper-text"> <div class="pf-v6-c-helper-text__item" id="form-demo-horizontal-name-helper" > <span class="pf-v6-c-helper-text__item-text" >Include your middle name if you have one.</span> </div> </div> </div> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-horizontal-email"> <span class="pf-v6-c-form__label-text">Email</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control"> <input type="email" id="form-demo-horizontal-email" name="form-demo-horizontal-email" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-horizontal-phone"> <span class="pf-v6-c-form__label-text">Phone number</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control"> <input type="tel" placeholder="Example, (555) 555-5555" id="form-demo-horizontal-phone" name="form-demo-horizontal-phone" /> </span> </div> </div> <div class="pf-v6-c-form__group" role="group" aria-labelledby="form-demo-horizontalform-demo-horizontal-contact-legend" > <div class="pf-v6-c-form__group-label pf-m-no-padding-top" id="form-demo-horizontalform-demo-horizontal-contact-legend" ><span class="pf-v6-c-form__label"> <span class="pf-v6-c-form__label-text">How can we contact you?</span></span>&nbsp;<span class="pf-v6-c-form__group-label-help"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for contact field" aria-describedby="form-demo-horizontal-contact-legend" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control pf-m-stack"> <div class="pf-v6-c-check"> <input class="pf-v6-c-check__input" type="checkbox" id="form-demo-horizontal-contact1" name="form-demo-horizontal-contact1" /> <label class="pf-v6-c-check__label" for="form-demo-horizontal-contact1" >Email</label> </div> <div class="pf-v6-c-check"> <input class="pf-v6-c-check__input" type="checkbox" id="form-demo-horizontal-contact2" name="form-demo-horizontal-contact2" /> <label class="pf-v6-c-check__label" for="form-demo-horizontal-contact2" >Phone</label> </div> <div class="pf-v6-c-check"> <input class="pf-v6-c-check__input" type="checkbox" id="form-demo-horizontal-contact3" name="form-demo-horizontal-contact3" /> <label class="pf-v6-c-check__label" for="form-demo-horizontal-contact3" >Mail</label> </div> </div> </div> <div class="pf-v6-c-form__group pf-m-action"> <div class="pf-v6-c-form__group-control"> <div class="pf-v6-c-form__actions"> <button class="pf-v6-c-button pf-m-primary" type="submit"> <span class="pf-v6-c-button__text">Submit</span> </button> <button class="pf-v6-c-button pf-m-link" type="button"> <span class="pf-v6-c-button__text">Cancel</span> </button> </div> </div> </div> </form> ``` ### Grid ```html <form class="pf-v6-c-form" novalidate> <div class="pf-v6-l-grid pf-m-all-6-col-on-md pf-m-gutter"> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-grid-name"> <span class="pf-v6-c-form__label-text">Full name</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-grid-name" name="form-demo-grid-name" aria-describedby="form-demo-grid-name-helper" /> </span> <div class="pf-v6-c-form__helper-text" aria-live="polite"> <div class="pf-v6-c-helper-text"> <div class="pf-v6-c-helper-text__item" id="-helper"> <span class="pf-v6-c-helper-text__item-text" >Include your middle name if you have one.</span> </div> </div> </div> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-grid-title"> <span class="pf-v6-c-form__label-text">Job title</span>&nbsp;<span class="pf-v6-c-form__label-required" aria-hidden="true">&#42;</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-grid-title" name="form-demo-grid-title" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-grid-phone"> <span class="pf-v6-c-form__label-text">Phone number</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control"> <input type="tel" id="form-demo-grid-phone" name="form-demo-grid-phone" placeholder="555-555-5555" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-grid-email"> <span class="pf-v6-c-form__label-text">Email</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control"> <input type="email" id="form-demo-grid-email" name="form-demo-grid-email" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-grid-address"> <span class="pf-v6-c-form__label-text">Street address</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control"> <input type="text" id="form-demo-grid-address" name="form-demo-grid-address" /> </span> </div> </div> <div class="pf-v6-l-grid pf-m-all-6-col pf-m-gutter"> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-grid-city"> <span class="pf-v6-c-form__label-text">City</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control"> <input id="form-demo-grid-city" name="form-demo-grid-city" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-grid-state"> <span class="pf-v6-c-form__label-text">State</span></label> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control"> <select id="form-demo-grid-state" name="form-demo-grid-state"> <option value selected>Select one</option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> <option value="CA">California</option> <option value="CO">Colorado</option> <option value="CT">Connecticut</option> <option value="DE">Delaware</option> <option value="FL">Florida</option> <option value="GA">Georgia</option> <option value="HI">Hawaii</option> <option value="ID">Idaho</option> <option value="IL">Illinois</option> <option value="IN">Indiana</option> <option value="IA">Iowa</option> <option value="KS">Kansas</option> <option value="KY">Kentucky</option> <option value="LA">Louisiana</option> <option value="ME">Maine</option> <option value="MD">Maryland</option> <option value="MA">Massachusetts</option> <option value="MI">Michigan</option> <option value="MN">Minnesota</option> <option value="MS">Mississippi</option> <option value="MO">Missouri</option> <option value="MT">Montana</option> <option value="NE">Nebraska</option> <option value="NV">Nevada</option> <option value="NH">New Hampshire</option> <option value="NJ">New Jersey</option> <option value="NM">New Mexico</option> <option value="NY">New York</option> <option value="NC">North Carolina</option> <option value="ND">North Dakota</option> <option value="OH">Ohio</option> <option value="OK">Oklahoma</option> <option value="OR">Oregon</option> <option value="PA">Pennsylvania</option> <option value="RI">Rhode Island</option> <option value="SC">South Carolina</option> <option value="SD">South Dakota</option> <option value="TN">Tennessee</option> <option value="TX">Texas</option> <option value="UT">Utah</option> <option value="VT">Vermont</option> <option value="VA">Virginia</option> <option value="WA">Washington</option> <option value="WV">West Virginia</option> <option value="WI">Wisconsin</option> <option value="WY">Wyoming</option> </select> <span class="pf-v6-c-form-control__utilities"> <span class="pf-v6-c-form-control__toggle-icon"> <i class="fas fa-caret-down" aria-hidden="true"></i> </span> </span> </span> </div> </div> </div> <div class="pf-v6-c-form__group pf-m-action"> <div class="pf-v6-c-form__group-control"> <div class="pf-v6-c-form__actions"> <button class="pf-v6-c-button pf-m-primary" type="submit"> <span class="pf-v6-c-button__text">Submit</span> </button> <button class="pf-v6-c-button pf-m-link" type="button"> <span class="pf-v6-c-button__text">Cancel</span> </button> </div> </div> </div> </div> </form> ``` ### Sections with repeatable fields ```html <form class="pf-v6-c-form" novalidate> <section class="pf-v6-c-form__section" role="group" aria-labelledby="form-demo-sections-repeatable-fields-section1-title" > <div class="pf-v6-c-form__section-title" id="form-demo-sections-repeatable-fields-section1-title" aria-hidden="true" >General settings</div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-sections-repeatable-fields-clientid" > <span class="pf-v6-c-form__label-text">Client ID</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"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for client id field" aria-describedby="form-demo-sections-repeatable-fields-clientid" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-repeatable-fields-clientid" name="form-demo-sections-repeatable-fields-clientid" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-sections-repeatable-fields-name" > <span class="pf-v6-c-form__label-text">Full 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"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for full name field" aria-describedby="form-demo-sections-repeatable-fields-name" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-repeatable-fields-name" name="form-demo-sections-repeatable-fields-name" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-sections-repeatable-fields-description" > <span class="pf-v6-c-form__label-text">Description</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"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for description field" aria-describedby="form-demo-sections-repeatable-fields-description" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-repeatable-fields-description" name="form-demo-sections-repeatable-fields-description" /> </span> </div> </div> </section> <section class="pf-v6-c-form__section" role="group" aria-labelledby="form-demo-sections-repeatable-fields-section2-title" > <div class="pf-v6-c-form__section-title" id="form-demo-sections-repeatable-fields-section2-title" aria-hidden="true" >Access settings</div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-sections-repeatable-fields-section2-rooturl" > <span class="pf-v6-c-form__label-text">Root URL</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"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for root URL field" aria-describedby="form-demo-sections-repeatable-fields-section2-rooturl" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-repeatable-fields-section2-rooturl" name="form-demo-sections-repeatable-fields-section2-rooturl" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" id="form-demo-sections-repeatable-fields-section2-uris" > <span class="pf-v6-c-form__label-text">Valid redirect URIs</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"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for valid redirect URIs field" aria-describedby="form-demo-sections-repeatable-fields-section2-uris" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control pf-m-stack"> <div class="pf-v6-c-input-group"> <div class="pf-v6-c-input-group__item pf-m-fill"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-repeatable-fields-section2-uris-input-1" name="form-demo-sections-repeatable-fields-section2-uris-input-1" aria-labelledby="form-demo-sections-repeatable-fields-section2-uris form-demo-sections-repeatable-fields-section2-uris-input-1" /> </span> </div> <div class="pf-v6-c-input-group__item pf-m-plain"> <button class="pf-v6-c-button pf-m-plain" type="button" aria-label="Remove" > <span class="pf-v6-c-button__icon"> <i class="fas fa-minus-circle" aria-hidden="true"></i> </span> </button> </div> </div> <div class="pf-v6-c-input-group"> <div class="pf-v6-c-input-group__item pf-m-fill"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-repeatable-fields-section2-uris-input-2" name="form-demo-sections-repeatable-fields-section2-uris-input-2" aria-labelledby="form-demo-sections-repeatable-fields-section2-uris form-demo-sections-repeatable-fields-section2-uris-input-2" /> </span> </div> <div class="pf-v6-c-input-group__item pf-m-plain"> <button class="pf-v6-c-button pf-m-plain" type="button" aria-label="Remove" > <span class="pf-v6-c-button__icon"> <i class="fas fa-minus-circle" aria-hidden="true"></i> </span> </button> </div> </div> <div class="pf-v6-c-input-group"> <div class="pf-v6-c-input-group__item pf-m-fill"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-repeatable-fields-section2-uris-input-3" name="form-demo-sections-repeatable-fields-section2-uris-input-3" aria-labelledby="form-demo-sections-repeatable-fields-section2-uris form-demo-sections-repeatable-fields-section2-uris-input-3" /> </span> </div> <div class="pf-v6-c-input-group__item pf-m-plain"> <button class="pf-v6-c-button pf-m-plain" type="button" aria-label="Remove" > <span class="pf-v6-c-button__icon"> <i class="fas fa-minus-circle" aria-hidden="true"></i> </span> </button> </div> </div> <button class="pf-v6-c-button pf-m-inline pf-m-link" type="button"> <span class="pf-v6-c-button__icon pf-m-start"> <i class="fas fa-plus-circle" aria-hidden="true"></i> </span> <span class="pf-v6-c-button__text">Add valid redirect URI</span> </button> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-sections-repeatable-fields-section2-home-url" > <span class="pf-v6-c-form__label-text">Home URL</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"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for home URL field" aria-describedby="form-demo-sections-repeatable-fields-section2-home-url" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-repeatable-fields-section2-home-url" name="form-demo-sections-repeatable-fields-section2-home-url" /> </span> </div> </div> </section> </form> ``` ### Complex form ```html <form class="pf-v6-c-form" novalidate> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-sections-complex-form-name" > <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"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for name field" aria-describedby="form-demo-sections-complex-form-name" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control"> <span class="pf-v6-c-form-control pf-m-required"> <input required type="text" id="form-demo-sections-complex-form-name" name="form-demo-sections-complex-form-name" /> </span> </div> </div> <div class="pf-v6-c-form__group"> <div class="pf-v6-c-form__group-label"><label class="pf-v6-c-form__label" for="form-demo-sections-complex-form-labels" > <span class="pf-v6-c-form__label-text">Labels</span></label>&nbsp;<span class="pf-v6-c-form__group-label-help"> <span class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" role="button" tabindex="0" aria-label="More information for labels field" aria-describedby="form-demo-sections-complex-form-labels" > <span class="pf-v6-c-button__icon"> <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em" > <path 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" /> </svg> </span> </span></span> </div> <div class="pf-v6-c-form__group-control"> <div class="pf-v6-c-text-input-group" id="form-demo-sections-complex-form-labels" > <div class="pf-v6-c-text-input-group__main"> <div class="pf-v6-c-label-group"> <div class="pf-v6-c-label-group__main"> <ul class="pf-v6-c-label-group__list" role="list" aria-label="Group of labels" > <li class="pf-v6-c-label-group__list-item"> <span class="pf-v6-c-label"> <span class="pf-v6-c-label__content"> <span class="pf-v6-c-label__icon"> <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i> </span> <span class="pf-v6-c-label__text" id="-label-1-text" >prometheus=k8s</span> </span> <span class="pf-v6-c-label__actions"> <button class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" id="-label-1-button" aria-label="Remove" aria-labelledby="-label-1-button -label-1-text" > <span class="pf-v6-c-button__icon"> <i class="fas fa-times fa-fw" aria-hidden="true"></i> </span> </button> </span> </span> </li> <li class="pf-v6-c-label-group__list-item"> <span class="pf-v6-c-label"> <span class="pf-v6-c-label__content"> <span class="pf-v6-c-label__icon"> <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i> </span> <span class="pf-v6-c-label__text" id="-label-2-text">new</span> </span> <span class="pf-v6-c-label__actions"> <button class="pf-v6-c-button pf-m-no-padding pf-m-plain" type="button" id="-label-2-button" aria-label="Remove" aria-labelledby="-label-2-button -label-2-text" > <span class="pf-v6-c-button__icon"> <i class="fas fa-times fa-fw" aria-hidden="true"></i> </span> </button> </span> </span> </li> <li class="pf-v6-c-label-group__list-item">