| 1 |
--- |
| 2 |
id: 'Text input group' |
| 3 |
section: components |
| 4 |
cssPrefix: pf-v6-c-text-input-group |
| 5 |
---import './TextInputGroup.css' |
| 6 |
|
| 7 |
## Examples |
| 8 |
|
| 9 |
### Basic |
| 10 |
|
| 11 |
```html |
| 12 |
<div class="pf-v6-c-text-input-group"> |
| 13 |
<div class="pf-v6-c-text-input-group__main"> |
| 14 |
<span class="pf-v6-c-text-input-group__text"> |
| 15 |
<input |
| 16 |
class="pf-v6-c-text-input-group__text-input" |
| 17 |
type="text" |
| 18 |
value |
| 19 |
aria-label="Basic" |
| 20 |
/> |
| 21 |
</span> |
| 22 |
</div> |
| 23 |
</div> |
| 24 |
|
| 25 |
``` |
| 26 |
|
| 27 |
### Disabled |
| 28 |
|
| 29 |
```html |
| 30 |
<div class="pf-v6-c-text-input-group pf-m-disabled"> |
| 31 |
<div class="pf-v6-c-text-input-group__main"> |
| 32 |
<span class="pf-v6-c-text-input-group__text"> |
| 33 |
<input |
| 34 |
class="pf-v6-c-text-input-group__text-input" |
| 35 |
type="text" |
| 36 |
disabled |
| 37 |
value="Disabled" |
| 38 |
aria-label="Disabled" |
| 39 |
/> |
| 40 |
</span> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
|
| 44 |
``` |
| 45 |
|
| 46 |
### Plain |
| 47 |
|
| 48 |
The following example shows a `TextInputGroup` with the `.pf-m-plain` class applied. A plain `TextInputGroup` must only be used when contained in an ancestor that has its own border or background color styling. <br/> <br/> |
| 49 |
For the purposes of this example, the `TextInputGroup` is contained in a wrapper with dashed border styling to show where the component is. |
| 50 |
|
| 51 |
```html |
| 52 |
<div class="pf-v6-c-text-input-group pf-m-plain"> |
| 53 |
<div class="pf-v6-c-text-input-group__main"> |
| 54 |
<span class="pf-v6-c-text-input-group__text"> |
| 55 |
<input |
| 56 |
class="pf-v6-c-text-input-group__text-input" |
| 57 |
type="text" |
| 58 |
value="Text input group with plain styling" |
| 59 |
aria-label="Plain" |
| 60 |
/> |
| 61 |
</span> |
| 62 |
</div> |
| 63 |
</div> |
| 64 |
|
| 65 |
``` |
| 66 |
|
| 67 |
### Utilities and icon with placeholder text |
| 68 |
|
| 69 |
```html |
| 70 |
<div class="pf-v6-c-text-input-group"> |
| 71 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 72 |
<span class="pf-v6-c-text-input-group__text"> |
| 73 |
<span class="pf-v6-c-text-input-group__icon"> |
| 74 |
<i class="fas fa-fw fa-search"></i> |
| 75 |
</span> |
| 76 |
<input |
| 77 |
class="pf-v6-c-text-input-group__text-input" |
| 78 |
type="text" |
| 79 |
placeholder="placeholder" |
| 80 |
value |
| 81 |
aria-label="Utilities and icon with placeholder" |
| 82 |
/> |
| 83 |
</span> |
| 84 |
</div> |
| 85 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 86 |
<button |
| 87 |
class="pf-v6-c-button pf-m-plain" |
| 88 |
type="button" |
| 89 |
aria-label="Clear utilities and icon with placeholder example" |
| 90 |
> |
| 91 |
<span class="pf-v6-c-button__icon"> |
| 92 |
<svg |
| 93 |
class="pf-v6-svg" |
| 94 |
fill="currentColor" |
| 95 |
viewBox="0 0 20 20" |
| 96 |
aria-hidden="true" |
| 97 |
role="img" |
| 98 |
width="1em" |
| 99 |
height="1em" |
| 100 |
> |
| 101 |
<path |
| 102 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 103 |
/> |
| 104 |
</svg> |
| 105 |
</span> |
| 106 |
</button> |
| 107 |
</div> |
| 108 |
</div> |
| 109 |
|
| 110 |
``` |
| 111 |
|
| 112 |
### With validation |
| 113 |
|
| 114 |
```html |
| 115 |
<div class="pf-v6-c-text-input-group pf-m-success"> |
| 116 |
<div class="pf-v6-c-text-input-group__main"> |
| 117 |
<span class="pf-v6-c-text-input-group__text"> |
| 118 |
<input |
| 119 |
class="pf-v6-c-text-input-group__text-input" |
| 120 |
type="text" |
| 121 |
value="Success validation" |
| 122 |
aria-label="Success validation" |
| 123 |
/> |
| 124 |
<span class="pf-v6-c-text-input-group__icon pf-m-status"> |
| 125 |
<i aria-hidden="true" class="fas fa-check-circle"></i> |
| 126 |
</span> |
| 127 |
</span> |
| 128 |
</div> |
| 129 |
</div> |
| 130 |
<br /> |
| 131 |
<div class="pf-v6-c-text-input-group pf-m-warning"> |
| 132 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 133 |
<span class="pf-v6-c-text-input-group__text"> |
| 134 |
<span class="pf-v6-c-text-input-group__icon"> |
| 135 |
<i class="fas fa-fw fa-search"></i> |
| 136 |
</span> |
| 137 |
<input |
| 138 |
class="pf-v6-c-text-input-group__text-input" |
| 139 |
type="text" |
| 140 |
value="Warning validation with icon at start" |
| 141 |
aria-label="Warning validation" |
| 142 |
/> |
| 143 |
<span class="pf-v6-c-text-input-group__icon pf-m-status"> |
| 144 |
<i aria-hidden="true" class="fas fa-exclamation-triangle"></i> |
| 145 |
</span> |
| 146 |
</span> |
| 147 |
</div> |
| 148 |
</div> |
| 149 |
<br /> |
| 150 |
<div class="pf-v6-c-text-input-group pf-m-error"> |
| 151 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 152 |
<span class="pf-v6-c-text-input-group__text"> |
| 153 |
<span class="pf-v6-c-text-input-group__icon"> |
| 154 |
<i class="fas fa-fw fa-search"></i> |
| 155 |
</span> |
| 156 |
<input |
| 157 |
class="pf-v6-c-text-input-group__text-input" |
| 158 |
type="text" |
| 159 |
value="Error validation with icon at start and utilities" |
| 160 |
aria-label="Error validation" |
| 161 |
/> |
| 162 |
<span class="pf-v6-c-text-input-group__icon pf-m-status"> |
| 163 |
<i aria-hidden="true" class="fas fa-exclamation-circle"></i> |
| 164 |
</span> |
| 165 |
</span> |
| 166 |
</div> |
| 167 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 168 |
<button |
| 169 |
class="pf-v6-c-button pf-m-plain" |
| 170 |
type="button" |
| 171 |
aria-label="Clear error validation example" |
| 172 |
> |
| 173 |
<span class="pf-v6-c-button__icon"> |
| 174 |
<svg |
| 175 |
class="pf-v6-svg" |
| 176 |
fill="currentColor" |
| 177 |
viewBox="0 0 20 20" |
| 178 |
aria-hidden="true" |
| 179 |
role="img" |
| 180 |
width="1em" |
| 181 |
height="1em" |
| 182 |
> |
| 183 |
<path |
| 184 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 185 |
/> |
| 186 |
</svg> |
| 187 |
</span> |
| 188 |
</button> |
| 189 |
</div> |
| 190 |
</div> |
| 191 |
|
| 192 |
<br /> |
| 193 |
<div class="pf-v6-c-text-input-group pf-m-error"> |
| 194 |
<div class="pf-v6-c-text-input-group__main"> |
| 195 |
<span class="pf-v6-c-text-input-group__text"> |
| 196 |
<input |
| 197 |
class="pf-v6-c-text-input-group__text-input" |
| 198 |
type="text" |
| 199 |
value="Error validation with no icon but with utilities" |
| 200 |
aria-label="Type to filter" |
| 201 |
/> |
| 202 |
<span class="pf-v6-c-text-input-group__icon pf-m-status"> |
| 203 |
<i aria-hidden="true" class="fas fa-exclamation-circle"></i> |
| 204 |
</span> |
| 205 |
</span> |
| 206 |
</div> |
| 207 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 208 |
<button |
| 209 |
class="pf-v6-c-button pf-m-plain" |
| 210 |
type="button" |
| 211 |
aria-label="Clear input" |
| 212 |
> |
| 213 |
<span class="pf-v6-c-button__icon"> |
| 214 |
<svg |
| 215 |
class="pf-v6-svg" |
| 216 |
fill="currentColor" |
| 217 |
viewBox="0 0 20 20" |
| 218 |
aria-hidden="true" |
| 219 |
role="img" |
| 220 |
width="1em" |
| 221 |
height="1em" |
| 222 |
> |
| 223 |
<path |
| 224 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 225 |
/> |
| 226 |
</svg> |
| 227 |
</span> |
| 228 |
</button> |
| 229 |
</div> |
| 230 |
</div> |
| 231 |
|
| 232 |
``` |
| 233 |
|
| 234 |
### Filters |
| 235 |
|
| 236 |
```html |
| 237 |
<div class="pf-v6-c-text-input-group"> |
| 238 |
<div class="pf-v6-c-text-input-group__main"> |
| 239 |
<div class="pf-v6-c-label-group"> |
| 240 |
<div class="pf-v6-c-label-group__main"> |
| 241 |
<ul |
| 242 |
class="pf-v6-c-label-group__list" |
| 243 |
role="list" |
| 244 |
aria-label="Label group list" |
| 245 |
> |
| 246 |
<li class="pf-v6-c-label-group__list-item"> |
| 247 |
<span class="pf-v6-c-label pf-m-outline"> |
| 248 |
<span class="pf-v6-c-label__content"> |
| 249 |
<span |
| 250 |
class="pf-v6-c-label__text" |
| 251 |
id="text-input-group-filters-label-group-label-one-text" |
| 252 |
>Label one</span> |
| 253 |
</span> |
| 254 |
<span class="pf-v6-c-label__actions"> |
| 255 |
<button |
| 256 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 257 |
type="button" |
| 258 |
id="text-input-group-filters-label-group-label-one-button" |
| 259 |
aria-label="Remove" |
| 260 |
aria-labelledby="text-input-group-filters-label-group-label-one-button text-input-group-filters-label-group-label-one-text" |
| 261 |
> |
| 262 |
<span class="pf-v6-c-button__icon"> |
| 263 |
<svg |
| 264 |
class="pf-v6-svg" |
| 265 |
fill="currentColor" |
| 266 |
viewBox="0 0 20 20" |
| 267 |
aria-hidden="true" |
| 268 |
role="img" |
| 269 |
width="1em" |
| 270 |
height="1em" |
| 271 |
> |
| 272 |
<path |
| 273 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 274 |
/> |
| 275 |
</svg> |
| 276 |
</span> |
| 277 |
</button> |
| 278 |
</span> |
| 279 |
</span> |
| 280 |
</li> |
| 281 |
<li class="pf-v6-c-label-group__list-item"> |
| 282 |
<span class="pf-v6-c-label pf-m-outline"> |
| 283 |
<span class="pf-v6-c-label__content"> |
| 284 |
<span |
| 285 |
class="pf-v6-c-label__text" |
| 286 |
id="text-input-group-filters-label-group-label-two-text" |
| 287 |
>Label two</span> |
| 288 |
</span> |
| 289 |
<span class="pf-v6-c-label__actions"> |
| 290 |
<button |
| 291 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 292 |
type="button" |
| 293 |
id="text-input-group-filters-label-group-label-two-button" |
| 294 |
aria-label="Remove" |
| 295 |
aria-labelledby="text-input-group-filters-label-group-label-two-button text-input-group-filters-label-group-label-two-text" |
| 296 |
> |
| 297 |
<span class="pf-v6-c-button__icon"> |
| 298 |
<svg |
| 299 |
class="pf-v6-svg" |
| 300 |
fill="currentColor" |
| 301 |
viewBox="0 0 20 20" |
| 302 |
aria-hidden="true" |
| 303 |
role="img" |
| 304 |
width="1em" |
| 305 |
height="1em" |
| 306 |
> |
| 307 |
<path |
| 308 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 309 |
/> |
| 310 |
</svg> |
| 311 |
</span> |
| 312 |
</button> |
| 313 |
</span> |
| 314 |
</span> |
| 315 |
</li> |
| 316 |
<li class="pf-v6-c-label-group__list-item"> |
| 317 |
<span class="pf-v6-c-label pf-m-outline"> |
| 318 |
<span class="pf-v6-c-label__content"> |
| 319 |
<span |
| 320 |
class="pf-v6-c-label__text" |
| 321 |
id="text-input-group-filters-label-group-label-three-text" |
| 322 |
>Label three</span> |
| 323 |
</span> |
| 324 |
<span class="pf-v6-c-label__actions"> |
| 325 |
<button |
| 326 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 327 |
type="button" |
| 328 |
id="text-input-group-filters-label-group-label-three-button" |
| 329 |
aria-label="Remove" |
| 330 |
aria-labelledby="text-input-group-filters-label-group-label-three-button text-input-group-filters-label-group-label-three-text" |
| 331 |
> |
| 332 |
<span class="pf-v6-c-button__icon"> |
| 333 |
<svg |
| 334 |
class="pf-v6-svg" |
| 335 |
fill="currentColor" |
| 336 |
viewBox="0 0 20 20" |
| 337 |
aria-hidden="true" |
| 338 |
role="img" |
| 339 |
width="1em" |
| 340 |
height="1em" |
| 341 |
> |
| 342 |
<path |
| 343 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 344 |
/> |
| 345 |
</svg> |
| 346 |
</span> |
| 347 |
</button> |
| 348 |
</span> |
| 349 |
</span> |
| 350 |
</li> |
| 351 |
<li class="pf-v6-c-label-group__list-item"> |
| 352 |
<span class="pf-v6-c-label pf-m-outline"> |
| 353 |
<span class="pf-v6-c-label__content"> |
| 354 |
<span |
| 355 |
class="pf-v6-c-label__text" |
| 356 |
id="text-input-group-filters-label-group-label-four-text" |
| 357 |
>Label four</span> |
| 358 |
</span> |
| 359 |
<span class="pf-v6-c-label__actions"> |
| 360 |
<button |
| 361 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 362 |
type="button" |
| 363 |
id="text-input-group-filters-label-group-label-four-button" |
| 364 |
aria-label="Remove" |
| 365 |
aria-labelledby="text-input-group-filters-label-group-label-four-button text-input-group-filters-label-group-label-four-text" |
| 366 |
> |
| 367 |
<span class="pf-v6-c-button__icon"> |
| 368 |
<svg |
| 369 |
class="pf-v6-svg" |
| 370 |
fill="currentColor" |
| 371 |
viewBox="0 0 20 20" |
| 372 |
aria-hidden="true" |
| 373 |
role="img" |
| 374 |
width="1em" |
| 375 |
height="1em" |
| 376 |
> |
| 377 |
<path |
| 378 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 379 |
/> |
| 380 |
</svg> |
| 381 |
</span> |
| 382 |
</button> |
| 383 |
</span> |
| 384 |
</span> |
| 385 |
</li> |
| 386 |
<li class="pf-v6-c-label-group__list-item"> |
| 387 |
<span class="pf-v6-c-label pf-m-outline"> |
| 388 |
<span class="pf-v6-c-label__content"> |
| 389 |
<span |
| 390 |
class="pf-v6-c-label__text" |
| 391 |
id="text-input-group-filters-label-group-label-five-text" |
| 392 |
>Label five</span> |
| 393 |
</span> |
| 394 |
<span class="pf-v6-c-label__actions"> |
| 395 |
<button |
| 396 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 397 |
type="button" |
| 398 |
id="text-input-group-filters-label-group-label-five-button" |
| 399 |
aria-label="Remove" |
| 400 |
aria-labelledby="text-input-group-filters-label-group-label-five-button text-input-group-filters-label-group-label-five-text" |
| 401 |
> |
| 402 |
<span class="pf-v6-c-button__icon"> |
| 403 |
<svg |
| 404 |
class="pf-v6-svg" |
| 405 |
fill="currentColor" |
| 406 |
viewBox="0 0 20 20" |
| 407 |
aria-hidden="true" |
| 408 |
role="img" |
| 409 |
width="1em" |
| 410 |
height="1em" |
| 411 |
> |
| 412 |
<path |
| 413 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 414 |
/> |
| 415 |
</svg> |
| 416 |
</span> |
| 417 |
</button> |
| 418 |
</span> |
| 419 |
</span> |
| 420 |
</li> |
| 421 |
<li class="pf-v6-c-label-group__list-item"> |
| 422 |
<span class="pf-v6-c-label pf-m-outline"> |
| 423 |
<span class="pf-v6-c-label__content"> |
| 424 |
<span |
| 425 |
class="pf-v6-c-label__text" |
| 426 |
id="text-input-group-filters-label-group-label-six-text" |
| 427 |
>Label six</span> |
| 428 |
</span> |
| 429 |
<span class="pf-v6-c-label__actions"> |
| 430 |
<button |
| 431 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 432 |
type="button" |
| 433 |
id="text-input-group-filters-label-group-label-six-button" |
| 434 |
aria-label="Remove" |
| 435 |
aria-labelledby="text-input-group-filters-label-group-label-six-button text-input-group-filters-label-group-label-six-text" |
| 436 |
> |
| 437 |
<span class="pf-v6-c-button__icon"> |
| 438 |
<svg |
| 439 |
class="pf-v6-svg" |
| 440 |
fill="currentColor" |
| 441 |
viewBox="0 0 20 20" |
| 442 |
aria-hidden="true" |
| 443 |
role="img" |
| 444 |
width="1em" |
| 445 |
height="1em" |
| 446 |
> |
| 447 |
<path |
| 448 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 449 |
/> |
| 450 |
</svg> |
| 451 |
</span> |
| 452 |
</button> |
| 453 |
</span> |
| 454 |
</span> |
| 455 |
</li> |
| 456 |
<li class="pf-v6-c-label-group__list-item"> |
| 457 |
<button class="pf-v6-c-label pf-m-overflow"> |
| 458 |
<span class="pf-v6-c-label__content"> |
| 459 |
<span class="pf-v6-c-label__content"> |
| 460 |
<span class="pf-v6-c-label__text">8 more</span> |
| 461 |
</span> |
| 462 |
</span> |
| 463 |
</button> |
| 464 |
</li> |
| 465 |
</ul> |
| 466 |
</div> |
| 467 |
</div> |
| 468 |
<span class="pf-v6-c-text-input-group__text"> |
| 469 |
<input |
| 470 |
class="pf-v6-c-text-input-group__text-input" |
| 471 |
type="text" |
| 472 |
value |
| 473 |
aria-label="Filters" |
| 474 |
/> |
| 475 |
</span> |
| 476 |
</div> |
| 477 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 478 |
<button |
| 479 |
class="pf-v6-c-button pf-m-plain" |
| 480 |
type="button" |
| 481 |
aria-label="Clear filter example" |
| 482 |
> |
| 483 |
<span class="pf-v6-c-button__icon"> |
| 484 |
<svg |
| 485 |
class="pf-v6-svg" |
| 486 |
fill="currentColor" |
| 487 |
viewBox="0 0 20 20" |
| 488 |
aria-hidden="true" |
| 489 |
role="img" |
| 490 |
width="1em" |
| 491 |
height="1em" |
| 492 |
> |
| 493 |
<path |
| 494 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 495 |
/> |
| 496 |
</svg> |
| 497 |
</span> |
| 498 |
</button> |
| 499 |
</div> |
| 500 |
</div> |
| 501 |
|
| 502 |
``` |
| 503 |
|
| 504 |
### Filters expanded |
| 505 |
|
| 506 |
```html |
| 507 |
<div class="pf-v6-c-text-input-group"> |
| 508 |
<div class="pf-v6-c-text-input-group__main"> |
| 509 |
<div class="pf-v6-c-label-group"> |
| 510 |
<div class="pf-v6-c-label-group__main"> |
| 511 |
<ul |
| 512 |
class="pf-v6-c-label-group__list" |
| 513 |
role="list" |
| 514 |
aria-label="Label group list" |
| 515 |
> |
| 516 |
<li class="pf-v6-c-label-group__list-item"> |
| 517 |
<span class="pf-v6-c-label pf-m-outline"> |
| 518 |
<span class="pf-v6-c-label__content"> |
| 519 |
<span |
| 520 |
class="pf-v6-c-label__text" |
| 521 |
id="text-input-group-filters-expanded-label-group-label-one-text" |
| 522 |
>Label one</span> |
| 523 |
</span> |
| 524 |
<span class="pf-v6-c-label__actions"> |
| 525 |
<button |
| 526 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 527 |
type="button" |
| 528 |
id="text-input-group-filters-expanded-label-group-label-one-button" |
| 529 |
aria-label="Remove" |
| 530 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-one-button text-input-group-filters-expanded-label-group-label-one-text" |
| 531 |
> |
| 532 |
<span class="pf-v6-c-button__icon"> |
| 533 |
<svg |
| 534 |
class="pf-v6-svg" |
| 535 |
fill="currentColor" |
| 536 |
viewBox="0 0 20 20" |
| 537 |
aria-hidden="true" |
| 538 |
role="img" |
| 539 |
width="1em" |
| 540 |
height="1em" |
| 541 |
> |
| 542 |
<path |
| 543 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 544 |
/> |
| 545 |
</svg> |
| 546 |
</span> |
| 547 |
</button> |
| 548 |
</span> |
| 549 |
</span> |
| 550 |
</li> |
| 551 |
<li class="pf-v6-c-label-group__list-item"> |
| 552 |
<span class="pf-v6-c-label pf-m-outline"> |
| 553 |
<span class="pf-v6-c-label__content"> |
| 554 |
<span |
| 555 |
class="pf-v6-c-label__text" |
| 556 |
id="text-input-group-filters-expanded-label-group-label-two-text" |
| 557 |
>Label two</span> |
| 558 |
</span> |
| 559 |
<span class="pf-v6-c-label__actions"> |
| 560 |
<button |
| 561 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 562 |
type="button" |
| 563 |
id="text-input-group-filters-expanded-label-group-label-two-button" |
| 564 |
aria-label="Remove" |
| 565 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-two-button text-input-group-filters-expanded-label-group-label-two-text" |
| 566 |
> |
| 567 |
<span class="pf-v6-c-button__icon"> |
| 568 |
<svg |
| 569 |
class="pf-v6-svg" |
| 570 |
fill="currentColor" |
| 571 |
viewBox="0 0 20 20" |
| 572 |
aria-hidden="true" |
| 573 |
role="img" |
| 574 |
width="1em" |
| 575 |
height="1em" |
| 576 |
> |
| 577 |
<path |
| 578 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 579 |
/> |
| 580 |
</svg> |
| 581 |
</span> |
| 582 |
</button> |
| 583 |
</span> |
| 584 |
</span> |
| 585 |
</li> |
| 586 |
<li class="pf-v6-c-label-group__list-item"> |
| 587 |
<span class="pf-v6-c-label pf-m-outline"> |
| 588 |
<span class="pf-v6-c-label__content"> |
| 589 |
<span |
| 590 |
class="pf-v6-c-label__text" |
| 591 |
id="text-input-group-filters-expanded-label-group-label-three-text" |
| 592 |
>Label three</span> |
| 593 |
</span> |
| 594 |
<span class="pf-v6-c-label__actions"> |
| 595 |
<button |
| 596 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 597 |
type="button" |
| 598 |
id="text-input-group-filters-expanded-label-group-label-three-button" |
| 599 |
aria-label="Remove" |
| 600 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-three-button text-input-group-filters-expanded-label-group-label-three-text" |
| 601 |
> |
| 602 |
<span class="pf-v6-c-button__icon"> |
| 603 |
<svg |
| 604 |
class="pf-v6-svg" |
| 605 |
fill="currentColor" |
| 606 |
viewBox="0 0 20 20" |
| 607 |
aria-hidden="true" |
| 608 |
role="img" |
| 609 |
width="1em" |
| 610 |
height="1em" |
| 611 |
> |
| 612 |
<path |
| 613 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 614 |
/> |
| 615 |
</svg> |
| 616 |
</span> |
| 617 |
</button> |
| 618 |
</span> |
| 619 |
</span> |
| 620 |
</li> |
| 621 |
<li class="pf-v6-c-label-group__list-item"> |
| 622 |
<span class="pf-v6-c-label pf-m-outline"> |
| 623 |
<span class="pf-v6-c-label__content"> |
| 624 |
<span |
| 625 |
class="pf-v6-c-label__text" |
| 626 |
id="text-input-group-filters-expanded-label-group-label-four-text" |
| 627 |
>Label four</span> |
| 628 |
</span> |
| 629 |
<span class="pf-v6-c-label__actions"> |
| 630 |
<button |
| 631 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 632 |
type="button" |
| 633 |
id="text-input-group-filters-expanded-label-group-label-four-button" |
| 634 |
aria-label="Remove" |
| 635 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-four-button text-input-group-filters-expanded-label-group-label-four-text" |
| 636 |
> |
| 637 |
<span class="pf-v6-c-button__icon"> |
| 638 |
<svg |
| 639 |
class="pf-v6-svg" |
| 640 |
fill="currentColor" |
| 641 |
viewBox="0 0 20 20" |
| 642 |
aria-hidden="true" |
| 643 |
role="img" |
| 644 |
width="1em" |
| 645 |
height="1em" |
| 646 |
> |
| 647 |
<path |
| 648 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 649 |
/> |
| 650 |
</svg> |
| 651 |
</span> |
| 652 |
</button> |
| 653 |
</span> |
| 654 |
</span> |
| 655 |
</li> |
| 656 |
<li class="pf-v6-c-label-group__list-item"> |
| 657 |
<span class="pf-v6-c-label pf-m-outline"> |
| 658 |
<span class="pf-v6-c-label__content"> |
| 659 |
<span |
| 660 |
class="pf-v6-c-label__text" |
| 661 |
id="text-input-group-filters-expanded-label-group-label-five-text" |
| 662 |
>Label five</span> |
| 663 |
</span> |
| 664 |
<span class="pf-v6-c-label__actions"> |
| 665 |
<button |
| 666 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 667 |
type="button" |
| 668 |
id="text-input-group-filters-expanded-label-group-label-five-button" |
| 669 |
aria-label="Remove" |
| 670 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-five-button text-input-group-filters-expanded-label-group-label-five-text" |
| 671 |
> |
| 672 |
<span class="pf-v6-c-button__icon"> |
| 673 |
<svg |
| 674 |
class="pf-v6-svg" |
| 675 |
fill="currentColor" |
| 676 |
viewBox="0 0 20 20" |
| 677 |
aria-hidden="true" |
| 678 |
role="img" |
| 679 |
width="1em" |
| 680 |
height="1em" |
| 681 |
> |
| 682 |
<path |
| 683 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 684 |
/> |
| 685 |
</svg> |
| 686 |
</span> |
| 687 |
</button> |
| 688 |
</span> |
| 689 |
</span> |
| 690 |
</li> |
| 691 |
<li class="pf-v6-c-label-group__list-item"> |
| 692 |
<span class="pf-v6-c-label pf-m-outline"> |
| 693 |
<span class="pf-v6-c-label__content"> |
| 694 |
<span |
| 695 |
class="pf-v6-c-label__text" |
| 696 |
id="text-input-group-filters-expanded-label-group-label-six-text" |
| 697 |
>Label six</span> |
| 698 |
</span> |
| 699 |
<span class="pf-v6-c-label__actions"> |
| 700 |
<button |
| 701 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 702 |
type="button" |
| 703 |
id="text-input-group-filters-expanded-label-group-label-six-button" |
| 704 |
aria-label="Remove" |
| 705 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-six-button text-input-group-filters-expanded-label-group-label-six-text" |
| 706 |
> |
| 707 |
<span class="pf-v6-c-button__icon"> |
| 708 |
<svg |
| 709 |
class="pf-v6-svg" |
| 710 |
fill="currentColor" |
| 711 |
viewBox="0 0 20 20" |
| 712 |
aria-hidden="true" |
| 713 |
role="img" |
| 714 |
width="1em" |
| 715 |
height="1em" |
| 716 |
> |
| 717 |
<path |
| 718 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 719 |
/> |
| 720 |
</svg> |
| 721 |
</span> |
| 722 |
</button> |
| 723 |
</span> |
| 724 |
</span> |
| 725 |
</li> |
| 726 |
<li class="pf-v6-c-label-group__list-item"> |
| 727 |
<span class="pf-v6-c-label pf-m-outline"> |
| 728 |
<span class="pf-v6-c-label__content"> |
| 729 |
<span |
| 730 |
class="pf-v6-c-label__text" |
| 731 |
id="text-input-group-filters-expanded-label-group-label-seven-text" |
| 732 |
>Label seven</span> |
| 733 |
</span> |
| 734 |
<span class="pf-v6-c-label__actions"> |
| 735 |
<button |
| 736 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 737 |
type="button" |
| 738 |
id="text-input-group-filters-expanded-label-group-label-seven-button" |
| 739 |
aria-label="Remove" |
| 740 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-seven-button text-input-group-filters-expanded-label-group-label-seven-text" |
| 741 |
> |
| 742 |
<span class="pf-v6-c-button__icon"> |
| 743 |
<svg |
| 744 |
class="pf-v6-svg" |
| 745 |
fill="currentColor" |
| 746 |
viewBox="0 0 20 20" |
| 747 |
aria-hidden="true" |
| 748 |
role="img" |
| 749 |
width="1em" |
| 750 |
height="1em" |
| 751 |
> |
| 752 |
<path |
| 753 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 754 |
/> |
| 755 |
</svg> |
| 756 |
</span> |
| 757 |
</button> |
| 758 |
</span> |
| 759 |
</span> |
| 760 |
</li> |
| 761 |
<li class="pf-v6-c-label-group__list-item"> |
| 762 |
<span class="pf-v6-c-label pf-m-outline"> |
| 763 |
<span class="pf-v6-c-label__content"> |
| 764 |
<span |
| 765 |
class="pf-v6-c-label__text" |
| 766 |
id="text-input-group-filters-expanded-label-group-label-eight-text" |
| 767 |
>Label eight</span> |
| 768 |
</span> |
| 769 |
<span class="pf-v6-c-label__actions"> |
| 770 |
<button |
| 771 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 772 |
type="button" |
| 773 |
id="text-input-group-filters-expanded-label-group-label-eight-button" |
| 774 |
aria-label="Remove" |
| 775 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-eight-button text-input-group-filters-expanded-label-group-label-eight-text" |
| 776 |
> |
| 777 |
<span class="pf-v6-c-button__icon"> |
| 778 |
<svg |
| 779 |
class="pf-v6-svg" |
| 780 |
fill="currentColor" |
| 781 |
viewBox="0 0 20 20" |
| 782 |
aria-hidden="true" |
| 783 |
role="img" |
| 784 |
width="1em" |
| 785 |
height="1em" |
| 786 |
> |
| 787 |
<path |
| 788 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 789 |
/> |
| 790 |
</svg> |
| 791 |
</span> |
| 792 |
</button> |
| 793 |
</span> |
| 794 |
</span> |
| 795 |
</li> |
| 796 |
<li class="pf-v6-c-label-group__list-item"> |
| 797 |
<span class="pf-v6-c-label pf-m-outline"> |
| 798 |
<span class="pf-v6-c-label__content"> |
| 799 |
<span |
| 800 |
class="pf-v6-c-label__text" |
| 801 |
id="text-input-group-filters-expanded-label-group-label-nine-text" |
| 802 |
>Label nine</span> |
| 803 |
</span> |
| 804 |
<span class="pf-v6-c-label__actions"> |
| 805 |
<button |
| 806 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 807 |
type="button" |
| 808 |
id="text-input-group-filters-expanded-label-group-label-nine-button" |
| 809 |
aria-label="Remove" |
| 810 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-nine-button text-input-group-filters-expanded-label-group-label-nine-text" |
| 811 |
> |
| 812 |
<span class="pf-v6-c-button__icon"> |
| 813 |
<svg |
| 814 |
class="pf-v6-svg" |
| 815 |
fill="currentColor" |
| 816 |
viewBox="0 0 20 20" |
| 817 |
aria-hidden="true" |
| 818 |
role="img" |
| 819 |
width="1em" |
| 820 |
height="1em" |
| 821 |
> |
| 822 |
<path |
| 823 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 824 |
/> |
| 825 |
</svg> |
| 826 |
</span> |
| 827 |
</button> |
| 828 |
</span> |
| 829 |
</span> |
| 830 |
</li> |
| 831 |
<li class="pf-v6-c-label-group__list-item"> |
| 832 |
<span class="pf-v6-c-label pf-m-outline"> |
| 833 |
<span class="pf-v6-c-label__content"> |
| 834 |
<span |
| 835 |
class="pf-v6-c-label__text" |
| 836 |
id="text-input-group-filters-expanded-label-group-label-ten-text" |
| 837 |
>Label ten</span> |
| 838 |
</span> |
| 839 |
<span class="pf-v6-c-label__actions"> |
| 840 |
<button |
| 841 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 842 |
type="button" |
| 843 |
id="text-input-group-filters-expanded-label-group-label-ten-button" |
| 844 |
aria-label="Remove" |
| 845 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-ten-button text-input-group-filters-expanded-label-group-label-ten-text" |
| 846 |
> |
| 847 |
<span class="pf-v6-c-button__icon"> |
| 848 |
<svg |
| 849 |
class="pf-v6-svg" |
| 850 |
fill="currentColor" |
| 851 |
viewBox="0 0 20 20" |
| 852 |
aria-hidden="true" |
| 853 |
role="img" |
| 854 |
width="1em" |
| 855 |
height="1em" |
| 856 |
> |
| 857 |
<path |
| 858 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 859 |
/> |
| 860 |
</svg> |
| 861 |
</span> |
| 862 |
</button> |
| 863 |
</span> |
| 864 |
</span> |
| 865 |
</li> |
| 866 |
<li class="pf-v6-c-label-group__list-item"> |
| 867 |
<span class="pf-v6-c-label pf-m-outline"> |
| 868 |
<span class="pf-v6-c-label__content"> |
| 869 |
<span |
| 870 |
class="pf-v6-c-label__text" |
| 871 |
id="text-input-group-filters-expanded-label-group-label-eleven-text" |
| 872 |
>Label eleven</span> |
| 873 |
</span> |
| 874 |
<span class="pf-v6-c-label__actions"> |
| 875 |
<button |
| 876 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 877 |
type="button" |
| 878 |
id="text-input-group-filters-expanded-label-group-label-eleven-button" |
| 879 |
aria-label="Remove" |
| 880 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-eleven-button text-input-group-filters-expanded-label-group-label-eleven-text" |
| 881 |
> |
| 882 |
<span class="pf-v6-c-button__icon"> |
| 883 |
<svg |
| 884 |
class="pf-v6-svg" |
| 885 |
fill="currentColor" |
| 886 |
viewBox="0 0 20 20" |
| 887 |
aria-hidden="true" |
| 888 |
role="img" |
| 889 |
width="1em" |
| 890 |
height="1em" |
| 891 |
> |
| 892 |
<path |
| 893 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 894 |
/> |
| 895 |
</svg> |
| 896 |
</span> |
| 897 |
</button> |
| 898 |
</span> |
| 899 |
</span> |
| 900 |
</li> |
| 901 |
<li class="pf-v6-c-label-group__list-item"> |
| 902 |
<span class="pf-v6-c-label pf-m-outline"> |
| 903 |
<span class="pf-v6-c-label__content"> |
| 904 |
<span |
| 905 |
class="pf-v6-c-label__text" |
| 906 |
id="text-input-group-filters-expanded-label-group-label-twelve-text" |
| 907 |
>Label twelve</span> |
| 908 |
</span> |
| 909 |
<span class="pf-v6-c-label__actions"> |
| 910 |
<button |
| 911 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 912 |
type="button" |
| 913 |
id="text-input-group-filters-expanded-label-group-label-twelve-button" |
| 914 |
aria-label="Remove" |
| 915 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-twelve-button text-input-group-filters-expanded-label-group-label-twelve-text" |
| 916 |
> |
| 917 |
<span class="pf-v6-c-button__icon"> |
| 918 |
<svg |
| 919 |
class="pf-v6-svg" |
| 920 |
fill="currentColor" |
| 921 |
viewBox="0 0 20 20" |
| 922 |
aria-hidden="true" |
| 923 |
role="img" |
| 924 |
width="1em" |
| 925 |
height="1em" |
| 926 |
> |
| 927 |
<path |
| 928 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 929 |
/> |
| 930 |
</svg> |
| 931 |
</span> |
| 932 |
</button> |
| 933 |
</span> |
| 934 |
</span> |
| 935 |
</li> |
| 936 |
<li class="pf-v6-c-label-group__list-item"> |
| 937 |
<span class="pf-v6-c-label pf-m-outline"> |
| 938 |
<span class="pf-v6-c-label__content"> |
| 939 |
<span |
| 940 |
class="pf-v6-c-label__text" |
| 941 |
id="text-input-group-filters-expanded-label-group-label-thirteen-text" |
| 942 |
>Label thirteen</span> |
| 943 |
</span> |
| 944 |
<span class="pf-v6-c-label__actions"> |
| 945 |
<button |
| 946 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 947 |
type="button" |
| 948 |
id="text-input-group-filters-expanded-label-group-label-thirteen-button" |
| 949 |
aria-label="Remove" |
| 950 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-thirteen-button text-input-group-filters-expanded-label-group-label-thirteen-text" |
| 951 |
> |
| 952 |
<span class="pf-v6-c-button__icon"> |
| 953 |
<svg |
| 954 |
class="pf-v6-svg" |
| 955 |
fill="currentColor" |
| 956 |
viewBox="0 0 20 20" |
| 957 |
aria-hidden="true" |
| 958 |
role="img" |
| 959 |
width="1em" |
| 960 |
height="1em" |
| 961 |
> |
| 962 |
<path |
| 963 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 964 |
/> |
| 965 |
</svg> |
| 966 |
</span> |
| 967 |
</button> |
| 968 |
</span> |
| 969 |
</span> |
| 970 |
</li> |
| 971 |
<li class="pf-v6-c-label-group__list-item"> |
| 972 |
<span class="pf-v6-c-label pf-m-outline"> |
| 973 |
<span class="pf-v6-c-label__content"> |
| 974 |
<span |
| 975 |
class="pf-v6-c-label__text" |
| 976 |
id="text-input-group-filters-expanded-label-group-label-fourteen-text" |
| 977 |
>Label fourteen</span> |
| 978 |
</span> |
| 979 |
<span class="pf-v6-c-label__actions"> |
| 980 |
<button |
| 981 |
class="pf-v6-c-button pf-m-no-padding pf-m-plain" |
| 982 |
type="button" |
| 983 |
id="text-input-group-filters-expanded-label-group-label-fourteen-button" |
| 984 |
aria-label="Remove" |
| 985 |
aria-labelledby="text-input-group-filters-expanded-label-group-label-fourteen-button text-input-group-filters-expanded-label-group-label-fourteen-text" |
| 986 |
> |
| 987 |
<span class="pf-v6-c-button__icon"> |
| 988 |
<svg |
| 989 |
class="pf-v6-svg" |
| 990 |
fill="currentColor" |
| 991 |
viewBox="0 0 20 20" |
| 992 |
aria-hidden="true" |
| 993 |
role="img" |
| 994 |
width="1em" |
| 995 |
height="1em" |
| 996 |
> |
| 997 |
<path |
| 998 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 999 |
/> |
| 1000 |
</svg> |
| 1001 |
</span> |
| 1002 |
</button> |
| 1003 |
</span> |
| 1004 |
</span> |
| 1005 |
</li> |
| 1006 |
</ul> |
| 1007 |
</div> |
| 1008 |
</div> |
| 1009 |
<span class="pf-v6-c-text-input-group__text"> |
| 1010 |
<input |
| 1011 |
class="pf-v6-c-text-input-group__text-input" |
| 1012 |
type="text" |
| 1013 |
value |
| 1014 |
aria-label="Filters expanded" |
| 1015 |
/> |
| 1016 |
</span> |
| 1017 |
</div> |
| 1018 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1019 |
<button |
| 1020 |
class="pf-v6-c-button pf-m-plain" |
| 1021 |
type="button" |
| 1022 |
aria-label="Clear filters expanded example" |
| 1023 |
> |
| 1024 |
<span class="pf-v6-c-button__icon"> |
| 1025 |
<svg |
| 1026 |
class="pf-v6-svg" |
| 1027 |
fill="currentColor" |
| 1028 |
viewBox="0 0 20 20" |
| 1029 |
aria-hidden="true" |
| 1030 |
role="img" |
| 1031 |
width="1em" |
| 1032 |
height="1em" |
| 1033 |
> |
| 1034 |
<path |
| 1035 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1036 |
/> |
| 1037 |
</svg> |
| 1038 |
</span> |
| 1039 |
</button> |
| 1040 |
</div> |
| 1041 |
</div> |
| 1042 |
|
| 1043 |
``` |
| 1044 |
|
| 1045 |
### Autocomplete last option hint |
| 1046 |
|
| 1047 |
```html |
| 1048 |
<div class="pf-v6-c-text-input-group"> |
| 1049 |
<div class="pf-v6-c-text-input-group__main"> |
| 1050 |
<span class="pf-v6-c-text-input-group__text"> |
| 1051 |
<input |
| 1052 |
class="pf-v6-c-text-input-group__text-input pf-m-hint" |
| 1053 |
type="text" |
| 1054 |
value="appleseed" |
| 1055 |
disabled |
| 1056 |
aria-hidden="true" |
| 1057 |
/> |
| 1058 |
<input |
| 1059 |
class="pf-v6-c-text-input-group__text-input" |
| 1060 |
type="text" |
| 1061 |
value="apples" |
| 1062 |
aria-label="Type to filter" |
| 1063 |
/> |
| 1064 |
</span> |
| 1065 |
</div> |
| 1066 |
</div> |
| 1067 |
|
| 1068 |
``` |
| 1069 |
|
| 1070 |
### Search input group |
| 1071 |
|
| 1072 |
The React implementation can be found in the [search input](/components/search-input) component. |
| 1073 |
|
| 1074 |
```html |
| 1075 |
<div class="pf-v6-c-text-input-group"> |
| 1076 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1077 |
<span class="pf-v6-c-text-input-group__text"> |
| 1078 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1079 |
<i class="fas fa-fw fa-search"></i> |
| 1080 |
</span> |
| 1081 |
<input |
| 1082 |
class="pf-v6-c-text-input-group__text-input" |
| 1083 |
type="text" |
| 1084 |
placeholder="Find by name" |
| 1085 |
value |
| 1086 |
aria-label="Search input group" |
| 1087 |
/> |
| 1088 |
</span> |
| 1089 |
</div> |
| 1090 |
</div> |
| 1091 |
|
| 1092 |
``` |
| 1093 |
|
| 1094 |
### Search input group, no match |
| 1095 |
|
| 1096 |
```html |
| 1097 |
<div class="pf-v6-c-text-input-group"> |
| 1098 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1099 |
<span class="pf-v6-c-text-input-group__text"> |
| 1100 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1101 |
<i class="fas fa-fw fa-search"></i> |
| 1102 |
</span> |
| 1103 |
<input |
| 1104 |
class="pf-v6-c-text-input-group__text-input" |
| 1105 |
type="text" |
| 1106 |
placeholder="Find by name" |
| 1107 |
value="Joh" |
| 1108 |
aria-label="Search input group no match" |
| 1109 |
/> |
| 1110 |
</span> |
| 1111 |
</div> |
| 1112 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1113 |
<button |
| 1114 |
class="pf-v6-c-button pf-m-plain" |
| 1115 |
type="button" |
| 1116 |
aria-label="Clear search input group no match" |
| 1117 |
> |
| 1118 |
<span class="pf-v6-c-button__icon"> |
| 1119 |
<svg |
| 1120 |
class="pf-v6-svg" |
| 1121 |
fill="currentColor" |
| 1122 |
viewBox="0 0 20 20" |
| 1123 |
aria-hidden="true" |
| 1124 |
role="img" |
| 1125 |
width="1em" |
| 1126 |
height="1em" |
| 1127 |
> |
| 1128 |
<path |
| 1129 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1130 |
/> |
| 1131 |
</svg> |
| 1132 |
</span> |
| 1133 |
</button> |
| 1134 |
</div> |
| 1135 |
</div> |
| 1136 |
|
| 1137 |
``` |
| 1138 |
|
| 1139 |
### Search input group, match with result count |
| 1140 |
|
| 1141 |
```html |
| 1142 |
<div class="pf-v6-c-text-input-group"> |
| 1143 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1144 |
<span class="pf-v6-c-text-input-group__text"> |
| 1145 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1146 |
<i class="fas fa-fw fa-search"></i> |
| 1147 |
</span> |
| 1148 |
<input |
| 1149 |
class="pf-v6-c-text-input-group__text-input" |
| 1150 |
type="text" |
| 1151 |
placeholder="Find by name" |
| 1152 |
value="John Doe" |
| 1153 |
aria-label="Search input group match with result count" |
| 1154 |
/> |
| 1155 |
</span> |
| 1156 |
</div> |
| 1157 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1158 |
<span class="pf-v6-c-badge pf-m-read"> |
| 1159 |
<span aria-hidden="true">3</span> |
| 1160 |
<span class="pf-v6-screen-reader">3 matching results</span> |
| 1161 |
</span> |
| 1162 |
<button |
| 1163 |
class="pf-v6-c-button pf-m-plain" |
| 1164 |
type="button" |
| 1165 |
aria-label="Clear search input group match with result count" |
| 1166 |
> |
| 1167 |
<span class="pf-v6-c-button__icon"> |
| 1168 |
<svg |
| 1169 |
class="pf-v6-svg" |
| 1170 |
fill="currentColor" |
| 1171 |
viewBox="0 0 20 20" |
| 1172 |
aria-hidden="true" |
| 1173 |
role="img" |
| 1174 |
width="1em" |
| 1175 |
height="1em" |
| 1176 |
> |
| 1177 |
<path |
| 1178 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1179 |
/> |
| 1180 |
</svg> |
| 1181 |
</span> |
| 1182 |
</button> |
| 1183 |
</div> |
| 1184 |
</div> |
| 1185 |
|
| 1186 |
``` |
| 1187 |
|
| 1188 |
### Search input group, match with navigable options |
| 1189 |
|
| 1190 |
```html |
| 1191 |
<div class="pf-v6-c-text-input-group"> |
| 1192 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1193 |
<span class="pf-v6-c-text-input-group__text"> |
| 1194 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1195 |
<i class="fas fa-fw fa-search"></i> |
| 1196 |
</span> |
| 1197 |
<input |
| 1198 |
class="pf-v6-c-text-input-group__text-input" |
| 1199 |
type="text" |
| 1200 |
placeholder="Find by name" |
| 1201 |
value="John Doe" |
| 1202 |
aria-label="Search input group match with navigable options" |
| 1203 |
/> |
| 1204 |
</span> |
| 1205 |
</div> |
| 1206 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1207 |
<span class="pf-v6-c-badge pf-m-read"> |
| 1208 |
<span aria-hidden="true">1 / 3</span> |
| 1209 |
<span class="pf-v6-screen-reader">Showing result 1 / 3</span> |
| 1210 |
</span> |
| 1211 |
<div class="pf-v6-c-text-input-group__group"> |
| 1212 |
<button |
| 1213 |
class="pf-v6-c-button pf-m-plain" |
| 1214 |
type="button" |
| 1215 |
aria-label="Previous" |
| 1216 |
disabled |
| 1217 |
> |
| 1218 |
<span class="pf-v6-c-button__icon"> |
| 1219 |
<svg |
| 1220 |
class="pf-v6-svg" |
| 1221 |
fill="currentColor" |
| 1222 |
viewBox="0 0 320 512" |
| 1223 |
aria-hidden="true" |
| 1224 |
role="img" |
| 1225 |
width="1em" |
| 1226 |
height="1em" |
| 1227 |
> |
| 1228 |
<path |
| 1229 |
d="M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z" |
| 1230 |
/> |
| 1231 |
</svg> |
| 1232 |
</span> |
| 1233 |
</button> |
| 1234 |
<button class="pf-v6-c-button pf-m-plain" type="button" aria-label="Next"> |
| 1235 |
<span class="pf-v6-c-button__icon"> |
| 1236 |
<svg |
| 1237 |
class="pf-v6-svg" |
| 1238 |
fill="currentColor" |
| 1239 |
viewBox="0 0 320 512" |
| 1240 |
aria-hidden="true" |
| 1241 |
role="img" |
| 1242 |
width="1em" |
| 1243 |
height="1em" |
| 1244 |
> |
| 1245 |
<path |
| 1246 |
d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z" |
| 1247 |
/> |
| 1248 |
</svg> |
| 1249 |
</span> |
| 1250 |
</button> |
| 1251 |
</div> |
| 1252 |
<button |
| 1253 |
class="pf-v6-c-button pf-m-plain" |
| 1254 |
type="button" |
| 1255 |
aria-label="Clear search input group match with navigable options" |
| 1256 |
> |
| 1257 |
<span class="pf-v6-c-button__icon"> |
| 1258 |
<svg |
| 1259 |
class="pf-v6-svg" |
| 1260 |
fill="currentColor" |
| 1261 |
viewBox="0 0 20 20" |
| 1262 |
aria-hidden="true" |
| 1263 |
role="img" |
| 1264 |
width="1em" |
| 1265 |
height="1em" |
| 1266 |
> |
| 1267 |
<path |
| 1268 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1269 |
/> |
| 1270 |
</svg> |
| 1271 |
</span> |
| 1272 |
</button> |
| 1273 |
</div> |
| 1274 |
</div> |
| 1275 |
|
| 1276 |
``` |
| 1277 |
|
| 1278 |
### Search input group, expandable |
| 1279 |
|
| 1280 |
```html |
| 1281 |
<h3>Collapsed</h3> |
| 1282 |
<br /> |
| 1283 |
<div class="pf-v6-c-input-group pf-m-search-expandable pf-m-plain"> |
| 1284 |
<div class="pf-v6-c-input-group__item pf-m-search-input"> |
| 1285 |
<div class="pf-v6-c-text-input-group"> |
| 1286 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1287 |
<span class="pf-v6-c-text-input-group__text"> |
| 1288 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1289 |
<i class="fas fa-fw fa-search"></i> |
| 1290 |
</span> |
| 1291 |
<input |
| 1292 |
class="pf-v6-c-text-input-group__text-input" |
| 1293 |
type="text" |
| 1294 |
placeholder="Search" |
| 1295 |
value |
| 1296 |
aria-label="Search input group collapsed" |
| 1297 |
/> |
| 1298 |
</span> |
| 1299 |
</div> |
| 1300 |
</div> |
| 1301 |
</div> |
| 1302 |
<div class="pf-v6-c-input-group__item pf-m-search-expand pf-m-plain"> |
| 1303 |
<button |
| 1304 |
class="pf-v6-c-button pf-m-plain" |
| 1305 |
type="button" |
| 1306 |
aria-label="Open search input group collapsed" |
| 1307 |
> |
| 1308 |
<span class="pf-v6-c-button__icon"> |
| 1309 |
<svg |
| 1310 |
class="pf-v6-svg" |
| 1311 |
fill="currentColor" |
| 1312 |
viewBox="0 0 512 512" |
| 1313 |
aria-hidden="true" |
| 1314 |
role="img" |
| 1315 |
width="1em" |
| 1316 |
height="1em" |
| 1317 |
> |
| 1318 |
<path |
| 1319 |
d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" |
| 1320 |
/> |
| 1321 |
</svg> |
| 1322 |
</span> |
| 1323 |
</button> |
| 1324 |
</div> |
| 1325 |
<div class="pf-v6-c-input-group__item pf-m-search-action pf-m-plain"> |
| 1326 |
<button |
| 1327 |
class="pf-v6-c-button pf-m-plain" |
| 1328 |
type="button" |
| 1329 |
aria-label="Close search input group expandable" |
| 1330 |
> |
| 1331 |
<span class="pf-v6-c-button__icon"> |
| 1332 |
<svg |
| 1333 |
class="pf-v6-svg" |
| 1334 |
fill="currentColor" |
| 1335 |
viewBox="0 0 20 20" |
| 1336 |
aria-hidden="true" |
| 1337 |
role="img" |
| 1338 |
width="1em" |
| 1339 |
height="1em" |
| 1340 |
> |
| 1341 |
<path |
| 1342 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1343 |
/> |
| 1344 |
</svg> |
| 1345 |
</span> |
| 1346 |
</button> |
| 1347 |
</div> |
| 1348 |
</div> |
| 1349 |
<br /> |
| 1350 |
<br /> |
| 1351 |
<h3>Expanded</h3> |
| 1352 |
<br /> |
| 1353 |
<div |
| 1354 |
class="pf-v6-c-input-group pf-m-expanded pf-m-search-expandable pf-m-plain" |
| 1355 |
> |
| 1356 |
<div class="pf-v6-c-input-group__item pf-m-search-input"> |
| 1357 |
<div class="pf-v6-c-text-input-group"> |
| 1358 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1359 |
<span class="pf-v6-c-text-input-group__text"> |
| 1360 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1361 |
<i class="fas fa-fw fa-search"></i> |
| 1362 |
</span> |
| 1363 |
<input |
| 1364 |
class="pf-v6-c-text-input-group__text-input" |
| 1365 |
type="text" |
| 1366 |
placeholder="Search" |
| 1367 |
value |
| 1368 |
aria-label="Search input group expanded" |
| 1369 |
/> |
| 1370 |
</span> |
| 1371 |
</div> |
| 1372 |
</div> |
| 1373 |
</div> |
| 1374 |
<div class="pf-v6-c-input-group__item pf-m-search-expand pf-m-plain"> |
| 1375 |
<button |
| 1376 |
class="pf-v6-c-button pf-m-plain" |
| 1377 |
type="button" |
| 1378 |
aria-label="Open search input group collapsed" |
| 1379 |
> |
| 1380 |
<span class="pf-v6-c-button__icon"> |
| 1381 |
<svg |
| 1382 |
class="pf-v6-svg" |
| 1383 |
fill="currentColor" |
| 1384 |
viewBox="0 0 512 512" |
| 1385 |
aria-hidden="true" |
| 1386 |
role="img" |
| 1387 |
width="1em" |
| 1388 |
height="1em" |
| 1389 |
> |
| 1390 |
<path |
| 1391 |
d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" |
| 1392 |
/> |
| 1393 |
</svg> |
| 1394 |
</span> |
| 1395 |
</button> |
| 1396 |
</div> |
| 1397 |
<div class="pf-v6-c-input-group__item pf-m-search-action pf-m-plain"> |
| 1398 |
<button |
| 1399 |
class="pf-v6-c-button pf-m-plain" |
| 1400 |
type="button" |
| 1401 |
aria-label="Close search input group expandable" |
| 1402 |
> |
| 1403 |
<span class="pf-v6-c-button__icon"> |
| 1404 |
<svg |
| 1405 |
class="pf-v6-svg" |
| 1406 |
fill="currentColor" |
| 1407 |
viewBox="0 0 20 20" |
| 1408 |
aria-hidden="true" |
| 1409 |
role="img" |
| 1410 |
width="1em" |
| 1411 |
height="1em" |
| 1412 |
> |
| 1413 |
<path |
| 1414 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1415 |
/> |
| 1416 |
</svg> |
| 1417 |
</span> |
| 1418 |
</button> |
| 1419 |
</div> |
| 1420 |
</div> |
| 1421 |
|
| 1422 |
``` |
| 1423 |
|
| 1424 |
### Search input group, with submit button |
| 1425 |
|
| 1426 |
```html |
| 1427 |
<div class="pf-v6-c-input-group"> |
| 1428 |
<div class="pf-v6-c-input-group__item pf-m-fill"> |
| 1429 |
<div class="pf-v6-c-text-input-group"> |
| 1430 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1431 |
<span class="pf-v6-c-text-input-group__text"> |
| 1432 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1433 |
<i class="fas fa-fw fa-search"></i> |
| 1434 |
</span> |
| 1435 |
<input |
| 1436 |
class="pf-v6-c-text-input-group__text-input" |
| 1437 |
type="text" |
| 1438 |
placeholder="Find by name" |
| 1439 |
value |
| 1440 |
aria-label="Search input group with submit button" |
| 1441 |
/> |
| 1442 |
</span> |
| 1443 |
</div> |
| 1444 |
</div> |
| 1445 |
</div> |
| 1446 |
<div class="pf-v6-c-input-group__item"> |
| 1447 |
<button |
| 1448 |
class="pf-v6-c-button pf-m-control" |
| 1449 |
type="submit" |
| 1450 |
aria-label="Submit search input group" |
| 1451 |
> |
| 1452 |
<span class="pf-v6-c-button__icon"> |
| 1453 |
<svg |
| 1454 |
class="pf-v6-svg" |
| 1455 |
fill="currentColor" |
| 1456 |
viewBox="0 0 448 512" |
| 1457 |
aria-hidden="true" |
| 1458 |
role="img" |
| 1459 |
width="1em" |
| 1460 |
height="1em" |
| 1461 |
> |
| 1462 |
<path |
| 1463 |
d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z" |
| 1464 |
/> |
| 1465 |
</svg> |
| 1466 |
</span> |
| 1467 |
</button> |
| 1468 |
</div> |
| 1469 |
</div> |
| 1470 |
|
| 1471 |
``` |
| 1472 |
|
| 1473 |
### Search input group, advanced search |
| 1474 |
|
| 1475 |
```html |
| 1476 |
<div class="pf-v6-c-input-group"> |
| 1477 |
<div class="pf-v6-c-input-group__item pf-m-fill"> |
| 1478 |
<div class="pf-v6-c-text-input-group"> |
| 1479 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1480 |
<span class="pf-v6-c-text-input-group__text"> |
| 1481 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1482 |
<i class="fas fa-fw fa-search"></i> |
| 1483 |
</span> |
| 1484 |
<input |
| 1485 |
class="pf-v6-c-text-input-group__text-input" |
| 1486 |
type="text" |
| 1487 |
value="username:root firstname:ned" |
| 1488 |
aria-label="Search input group advanced search" |
| 1489 |
/> |
| 1490 |
</span> |
| 1491 |
</div> |
| 1492 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1493 |
<button |
| 1494 |
class="pf-v6-c-button pf-m-plain" |
| 1495 |
type="button" |
| 1496 |
aria-label="Clear advance search input group collapsed" |
| 1497 |
> |
| 1498 |
<span class="pf-v6-c-button__icon"> |
| 1499 |
<svg |
| 1500 |
class="pf-v6-svg" |
| 1501 |
fill="currentColor" |
| 1502 |
viewBox="0 0 20 20" |
| 1503 |
aria-hidden="true" |
| 1504 |
role="img" |
| 1505 |
width="1em" |
| 1506 |
height="1em" |
| 1507 |
> |
| 1508 |
<path |
| 1509 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1510 |
/> |
| 1511 |
</svg> |
| 1512 |
</span> |
| 1513 |
</button> |
| 1514 |
</div> |
| 1515 |
</div> |
| 1516 |
</div> |
| 1517 |
<div class="pf-v6-c-input-group__item"> |
| 1518 |
<button |
| 1519 |
class="pf-v6-c-button pf-m-control" |
| 1520 |
type="button" |
| 1521 |
aria-expanded="false" |
| 1522 |
aria-label="Advanced search collapsed" |
| 1523 |
> |
| 1524 |
<span class="pf-v6-c-button__icon"> |
| 1525 |
<svg |
| 1526 |
class="pf-v6-svg" |
| 1527 |
fill="currentColor" |
| 1528 |
viewBox="0 0 320 512" |
| 1529 |
aria-hidden="true" |
| 1530 |
role="img" |
| 1531 |
width="1em" |
| 1532 |
height="1em" |
| 1533 |
> |
| 1534 |
<path |
| 1535 |
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" |
| 1536 |
/> |
| 1537 |
</svg> |
| 1538 |
</span> |
| 1539 |
</button> |
| 1540 |
</div> |
| 1541 |
<div class="pf-v6-c-input-group__item"> |
| 1542 |
<button |
| 1543 |
class="pf-v6-c-button pf-m-control" |
| 1544 |
type="submit" |
| 1545 |
aria-label="Search advance search input group collapsed" |
| 1546 |
> |
| 1547 |
<span class="pf-v6-c-button__icon"> |
| 1548 |
<svg |
| 1549 |
class="pf-v6-svg" |
| 1550 |
fill="currentColor" |
| 1551 |
viewBox="0 0 448 512" |
| 1552 |
aria-hidden="true" |
| 1553 |
role="img" |
| 1554 |
width="1em" |
| 1555 |
height="1em" |
| 1556 |
> |
| 1557 |
<path |
| 1558 |
d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z" |
| 1559 |
/> |
| 1560 |
</svg> |
| 1561 |
</span> |
| 1562 |
</button> |
| 1563 |
</div> |
| 1564 |
</div> |
| 1565 |
|
| 1566 |
``` |
| 1567 |
|
| 1568 |
### Search input group, advanced search expanded |
| 1569 |
|
| 1570 |
```html |
| 1571 |
<div class="pf-v6-c-input-group"> |
| 1572 |
<div class="pf-v6-c-input-group__item pf-m-fill"> |
| 1573 |
<div class="pf-v6-c-text-input-group"> |
| 1574 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1575 |
<span class="pf-v6-c-text-input-group__text"> |
| 1576 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1577 |
<i class="fas fa-fw fa-search"></i> |
| 1578 |
</span> |
| 1579 |
<input |
| 1580 |
class="pf-v6-c-text-input-group__text-input" |
| 1581 |
type="text" |
| 1582 |
value="username:root firstname:ned" |
| 1583 |
aria-label="Search input group advanced search expanded" |
| 1584 |
/> |
| 1585 |
</span> |
| 1586 |
</div> |
| 1587 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1588 |
<button |
| 1589 |
class="pf-v6-c-button pf-m-plain" |
| 1590 |
type="button" |
| 1591 |
aria-label="Clear advance search input group expanded" |
| 1592 |
> |
| 1593 |
<span class="pf-v6-c-button__icon"> |
| 1594 |
<svg |
| 1595 |
class="pf-v6-svg" |
| 1596 |
fill="currentColor" |
| 1597 |
viewBox="0 0 20 20" |
| 1598 |
aria-hidden="true" |
| 1599 |
role="img" |
| 1600 |
width="1em" |
| 1601 |
height="1em" |
| 1602 |
> |
| 1603 |
<path |
| 1604 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1605 |
/> |
| 1606 |
</svg> |
| 1607 |
</span> |
| 1608 |
</button> |
| 1609 |
</div> |
| 1610 |
</div> |
| 1611 |
</div> |
| 1612 |
<div class="pf-v6-c-input-group__item"> |
| 1613 |
<button |
| 1614 |
class="pf-v6-c-button pf-m-expanded pf-m-control" |
| 1615 |
type="button" |
| 1616 |
aria-expanded="true" |
| 1617 |
aria-label="Advanced search expanded" |
| 1618 |
> |
| 1619 |
<span class="pf-v6-c-button__icon"> |
| 1620 |
<svg |
| 1621 |
class="pf-v6-svg" |
| 1622 |
fill="currentColor" |
| 1623 |
viewBox="0 0 320 512" |
| 1624 |
aria-hidden="true" |
| 1625 |
role="img" |
| 1626 |
width="1em" |
| 1627 |
height="1em" |
| 1628 |
> |
| 1629 |
<path |
| 1630 |
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" |
| 1631 |
/> |
| 1632 |
</svg> |
| 1633 |
</span> |
| 1634 |
</button> |
| 1635 |
</div> |
| 1636 |
<div class="pf-v6-c-input-group__item"> |
| 1637 |
<button |
| 1638 |
class="pf-v6-c-button pf-m-control" |
| 1639 |
type="submit" |
| 1640 |
aria-label="Search advance search input group expanded" |
| 1641 |
> |
| 1642 |
<span class="pf-v6-c-button__icon"> |
| 1643 |
<svg |
| 1644 |
class="pf-v6-svg" |
| 1645 |
fill="currentColor" |
| 1646 |
viewBox="0 0 448 512" |
| 1647 |
aria-hidden="true" |
| 1648 |
role="img" |
| 1649 |
width="1em" |
| 1650 |
height="1em" |
| 1651 |
> |
| 1652 |
<path |
| 1653 |
d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z" |
| 1654 |
/> |
| 1655 |
</svg> |
| 1656 |
</span> |
| 1657 |
</button> |
| 1658 |
</div> |
| 1659 |
</div> |
| 1660 |
|
| 1661 |
<div class="pf-v6-c-panel pf-m-raised"> |
| 1662 |
<div class="pf-v6-c-panel__main"> |
| 1663 |
<div class="pf-v6-c-panel__main-body"> |
| 1664 |
<form class="pf-v6-c-form" novalidate> |
| 1665 |
<div class="pf-v6-c-form__group"> |
| 1666 |
<div class="pf-v6-c-form__group-label"><label |
| 1667 |
class="pf-v6-c-form__label" |
| 1668 |
for="text-input-group-advanced-search-input-expanded-legacy-form-example-username" |
| 1669 |
> |
| 1670 |
<span class="pf-v6-c-form__label-text">Username</span></label> |
| 1671 |
</div> |
| 1672 |
<div class="pf-v6-c-form__group-control"> |
| 1673 |
<span class="pf-v6-c-form-control"> |
| 1674 |
<input |
| 1675 |
type="text" |
| 1676 |
value="root" |
| 1677 |
id="text-input-group-advanced-search-input-expanded-legacy-form-example-username" |
| 1678 |
name="text-input-group-advanced-search-input-expanded-legacy-form-example-username" |
| 1679 |
/> |
| 1680 |
</span> |
| 1681 |
</div> |
| 1682 |
</div> |
| 1683 |
<div class="pf-v6-c-form__group"> |
| 1684 |
<div class="pf-v6-c-form__group-label"><label |
| 1685 |
class="pf-v6-c-form__label" |
| 1686 |
for="text-input-group-advanced-search-input-expanded-legacy-form-example-firstname" |
| 1687 |
> |
| 1688 |
<span class="pf-v6-c-form__label-text">First name</span></label> |
| 1689 |
</div> |
| 1690 |
<div class="pf-v6-c-form__group-control"> |
| 1691 |
<span class="pf-v6-c-form-control"> |
| 1692 |
<input |
| 1693 |
type="text" |
| 1694 |
value="ned" |
| 1695 |
id="text-input-group-advanced-search-input-expanded-legacy-form-example-firstname" |
| 1696 |
name="text-input-group-advanced-search-input-expanded-legacy-form-example-firstname" |
| 1697 |
/> |
| 1698 |
</span> |
| 1699 |
</div> |
| 1700 |
</div> |
| 1701 |
<div class="pf-v6-c-form__group"> |
| 1702 |
<div class="pf-v6-c-form__group-label"><label |
| 1703 |
class="pf-v6-c-form__label" |
| 1704 |
for="text-input-group-advanced-search-input-expanded-legacy-form-example-group" |
| 1705 |
> |
| 1706 |
<span class="pf-v6-c-form__label-text">Group</span></label> |
| 1707 |
</div> |
| 1708 |
<div class="pf-v6-c-form__group-control"> |
| 1709 |
<span class="pf-v6-c-form-control"> |
| 1710 |
<input |
| 1711 |
type="text" |
| 1712 |
id="text-input-group-advanced-search-input-expanded-legacy-form-example-group" |
| 1713 |
name="text-input-group-advanced-search-input-expanded-legacy-form-example-group" |
| 1714 |
/> |
| 1715 |
</span> |
| 1716 |
</div> |
| 1717 |
</div> |
| 1718 |
<div class="pf-v6-c-form__group"> |
| 1719 |
<div class="pf-v6-c-form__group-label"><label |
| 1720 |
class="pf-v6-c-form__label" |
| 1721 |
for="text-input-group-advanced-search-input-expanded-legacy-form-example-email" |
| 1722 |
> |
| 1723 |
<span class="pf-v6-c-form__label-text">Email</span></label> |
| 1724 |
</div> |
| 1725 |
<div class="pf-v6-c-form__group-control"> |
| 1726 |
<span class="pf-v6-c-form-control"> |
| 1727 |
<input |
| 1728 |
type="text" |
| 1729 |
id="text-input-group-advanced-search-input-expanded-legacy-form-example-email" |
| 1730 |
name="text-input-group-advanced-search-input-expanded-legacy-form-example-email" |
| 1731 |
/> |
| 1732 |
</span> |
| 1733 |
</div> |
| 1734 |
</div> |
| 1735 |
<div class="pf-v6-c-form__group pf-m-action"> |
| 1736 |
<div class="pf-v6-c-form__actions"> |
| 1737 |
<button |
| 1738 |
class="pf-v6-c-button pf-m-primary" |
| 1739 |
id="submit-advanced-search-expanded" |
| 1740 |
type="submit" |
| 1741 |
aria-labelledby="submit-advanced-search-expanded search-input-group-advanced-search-expanded" |
| 1742 |
> |
| 1743 |
<span class="pf-v6-c-button__text">Submit</span> |
| 1744 |
</button> |
| 1745 |
<button |
| 1746 |
class="pf-v6-c-button pf-m-link" |
| 1747 |
id="reset-advanced-search-expanded" |
| 1748 |
type="reset" |
| 1749 |
aria-labelledby="reset-advanced-search-expanded search-input-group-advanced-search-expanded" |
| 1750 |
> |
| 1751 |
<span class="pf-v6-c-button__text">Reset</span> |
| 1752 |
</button> |
| 1753 |
</div> |
| 1754 |
</div> |
| 1755 |
</form> |
| 1756 |
</div> |
| 1757 |
</div> |
| 1758 |
</div> |
| 1759 |
|
| 1760 |
``` |
| 1761 |
|
| 1762 |
### Search input group, autocomplete |
| 1763 |
|
| 1764 |
```html |
| 1765 |
<div class="pf-v6-c-text-input-group"> |
| 1766 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1767 |
<span class="pf-v6-c-text-input-group__text"> |
| 1768 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1769 |
<i class="fas fa-fw fa-search"></i> |
| 1770 |
</span> |
| 1771 |
<input |
| 1772 |
class="pf-v6-c-text-input-group__text-input" |
| 1773 |
type="text" |
| 1774 |
value="app" |
| 1775 |
aria-label="Search input group autocomplete" |
| 1776 |
/> |
| 1777 |
</span> |
| 1778 |
</div> |
| 1779 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1780 |
<button |
| 1781 |
class="pf-v6-c-button pf-m-plain" |
| 1782 |
type="button" |
| 1783 |
aria-label="Clear autocomplete search input group" |
| 1784 |
> |
| 1785 |
<span class="pf-v6-c-button__icon"> |
| 1786 |
<svg |
| 1787 |
class="pf-v6-svg" |
| 1788 |
fill="currentColor" |
| 1789 |
viewBox="0 0 20 20" |
| 1790 |
aria-hidden="true" |
| 1791 |
role="img" |
| 1792 |
width="1em" |
| 1793 |
height="1em" |
| 1794 |
> |
| 1795 |
<path |
| 1796 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1797 |
/> |
| 1798 |
</svg> |
| 1799 |
</span> |
| 1800 |
</button> |
| 1801 |
</div> |
| 1802 |
</div> |
| 1803 |
|
| 1804 |
<div class="pf-v6-c-menu"> |
| 1805 |
<div class="pf-v6-c-menu__content"> |
| 1806 |
<ul class="pf-v6-c-menu__list" role="menu"> |
| 1807 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 1808 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 1809 |
<span class="pf-v6-c-menu__item-main"> |
| 1810 |
<span class="pf-v6-c-menu__item-text">apple</span> |
| 1811 |
</span> |
| 1812 |
</button> |
| 1813 |
</li> |
| 1814 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 1815 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 1816 |
<span class="pf-v6-c-menu__item-main"> |
| 1817 |
<span class="pf-v6-c-menu__item-text">appleby</span> |
| 1818 |
</span> |
| 1819 |
</button> |
| 1820 |
</li> |
| 1821 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 1822 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 1823 |
<span class="pf-v6-c-menu__item-main"> |
| 1824 |
<span class="pf-v6-c-menu__item-text">appleseed</span> |
| 1825 |
</span> |
| 1826 |
</button> |
| 1827 |
</li> |
| 1828 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 1829 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 1830 |
<span class="pf-v6-c-menu__item-main"> |
| 1831 |
<span class="pf-v6-c-menu__item-text">appleton</span> |
| 1832 |
</span> |
| 1833 |
</button> |
| 1834 |
</li> |
| 1835 |
</ul> |
| 1836 |
</div> |
| 1837 |
</div> |
| 1838 |
|
| 1839 |
``` |
| 1840 |
|
| 1841 |
### Search input group, autocomplete last option hint |
| 1842 |
|
| 1843 |
```html |
| 1844 |
<div class="pf-v6-c-text-input-group"> |
| 1845 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1846 |
<span class="pf-v6-c-text-input-group__text"> |
| 1847 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1848 |
<i class="fas fa-fw fa-search"></i> |
| 1849 |
</span> |
| 1850 |
<input |
| 1851 |
class="pf-v6-c-text-input-group__text-input pf-m-hint" |
| 1852 |
type="text" |
| 1853 |
value="appleseed" |
| 1854 |
disabled |
| 1855 |
aria-hidden="true" |
| 1856 |
/> |
| 1857 |
</span> |
| 1858 |
</div> |
| 1859 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1860 |
<button |
| 1861 |
class="pf-v6-c-button pf-m-plain" |
| 1862 |
type="button" |
| 1863 |
aria-label="Clear autocomple search input group last option hint" |
| 1864 |
> |
| 1865 |
<span class="pf-v6-c-button__icon"> |
| 1866 |
<svg |
| 1867 |
class="pf-v6-svg" |
| 1868 |
fill="currentColor" |
| 1869 |
viewBox="0 0 20 20" |
| 1870 |
aria-hidden="true" |
| 1871 |
role="img" |
| 1872 |
width="1em" |
| 1873 |
height="1em" |
| 1874 |
> |
| 1875 |
<path |
| 1876 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1877 |
/> |
| 1878 |
</svg> |
| 1879 |
</span> |
| 1880 |
</button> |
| 1881 |
</div> |
| 1882 |
</div> |
| 1883 |
|
| 1884 |
<div class="pf-v6-c-menu"> |
| 1885 |
<div class="pf-v6-c-menu__content"> |
| 1886 |
<ul class="pf-v6-c-menu__list" role="menu"> |
| 1887 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 1888 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 1889 |
<span class="pf-v6-c-menu__item-main"> |
| 1890 |
<span class="pf-v6-c-menu__item-text">appleseed</span> |
| 1891 |
</span> |
| 1892 |
</button> |
| 1893 |
</li> |
| 1894 |
</ul> |
| 1895 |
</div> |
| 1896 |
</div> |
| 1897 |
|
| 1898 |
``` |
| 1899 |
|
| 1900 |
### Search input group, advanced search expanded with autocomplete |
| 1901 |
|
| 1902 |
```html |
| 1903 |
<div class="ws-example-wrapper"> |
| 1904 |
<div class="pf-v6-c-input-group"> |
| 1905 |
<div class="pf-v6-c-input-group__item pf-m-fill"> |
| 1906 |
<div class="pf-v6-c-text-input-group"> |
| 1907 |
<div class="pf-v6-c-text-input-group__main pf-m-icon"> |
| 1908 |
<span class="pf-v6-c-text-input-group__text"> |
| 1909 |
<span class="pf-v6-c-text-input-group__icon"> |
| 1910 |
<i class="fas fa-fw fa-search"></i> |
| 1911 |
</span> |
| 1912 |
<input |
| 1913 |
class="pf-v6-c-text-input-group__text-input" |
| 1914 |
type="text" |
| 1915 |
value="username:root firstname:n" |
| 1916 |
aria-label="Search input group advanced search expanded with autocomplete" |
| 1917 |
/> |
| 1918 |
</span> |
| 1919 |
</div> |
| 1920 |
<div class="pf-v6-c-text-input-group__utilities"> |
| 1921 |
<button |
| 1922 |
class="pf-v6-c-button pf-m-plain" |
| 1923 |
type="button" |
| 1924 |
aria-label="Clear advance search input group expanded with autocomplete" |
| 1925 |
> |
| 1926 |
<span class="pf-v6-c-button__icon"> |
| 1927 |
<svg |
| 1928 |
class="pf-v6-svg" |
| 1929 |
fill="currentColor" |
| 1930 |
viewBox="0 0 20 20" |
| 1931 |
aria-hidden="true" |
| 1932 |
role="img" |
| 1933 |
width="1em" |
| 1934 |
height="1em" |
| 1935 |
> |
| 1936 |
<path |
| 1937 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 1938 |
/> |
| 1939 |
</svg> |
| 1940 |
</span> |
| 1941 |
</button> |
| 1942 |
</div> |
| 1943 |
</div> |
| 1944 |
</div> |
| 1945 |
<div class="pf-v6-c-input-group__item"> |
| 1946 |
<button |
| 1947 |
class="pf-v6-c-button pf-m-expanded pf-m-control" |
| 1948 |
type="button" |
| 1949 |
aria-expanded="true" |
| 1950 |
aria-label="Advanced search expanded with autocomplete" |
| 1951 |
> |
| 1952 |
<span class="pf-v6-c-button__icon"> |
| 1953 |
<svg |
| 1954 |
class="pf-v6-svg" |
| 1955 |
fill="currentColor" |
| 1956 |
viewBox="0 0 320 512" |
| 1957 |
aria-hidden="true" |
| 1958 |
role="img" |
| 1959 |
width="1em" |
| 1960 |
height="1em" |
| 1961 |
> |
| 1962 |
<path |
| 1963 |
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" |
| 1964 |
/> |
| 1965 |
</svg> |
| 1966 |
</span> |
| 1967 |
</button> |
| 1968 |
</div> |
| 1969 |
<div class="pf-v6-c-input-group__item"> |
| 1970 |
<button |
| 1971 |
class="pf-v6-c-button pf-m-control" |
| 1972 |
type="submit" |
| 1973 |
aria-label="Search advanced search input group expanded with autocomplete" |
| 1974 |
> |
| 1975 |
<span class="pf-v6-c-button__icon"> |
| 1976 |
<svg |
| 1977 |
class="pf-v6-svg" |
| 1978 |
fill="currentColor" |
| 1979 |
viewBox="0 0 448 512" |
| 1980 |
aria-hidden="true" |
| 1981 |
role="img" |
| 1982 |
width="1em" |
| 1983 |
height="1em" |
| 1984 |
> |
| 1985 |
<path |
| 1986 |
d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z" |
| 1987 |
/> |
| 1988 |
</svg> |
| 1989 |
</span> |
| 1990 |
</button> |
| 1991 |
</div> |
| 1992 |
</div> |
| 1993 |
|
| 1994 |
<div class="pf-v6-c-panel pf-m-raised"> |
| 1995 |
<div class="pf-v6-c-panel__main"> |
| 1996 |
<div class="pf-v6-c-panel__main-body"> |
| 1997 |
<form class="pf-v6-c-form" novalidate> |
| 1998 |
<div class="pf-v6-c-form__group"> |
| 1999 |
<div class="pf-v6-c-form__group-label"><label |
| 2000 |
class="pf-v6-c-form__label" |
| 2001 |
for="text-input-group-advanced-search-input-form-with-autocomplete-example-username" |
| 2002 |
> |
| 2003 |
<span class="pf-v6-c-form__label-text">Username</span></label> |
| 2004 |
</div> |
| 2005 |
<div class="pf-v6-c-form__group-control"> |
| 2006 |
<span class="pf-v6-c-form-control"> |
| 2007 |
<input |
| 2008 |
type="text" |
| 2009 |
value="root" |
| 2010 |
id="text-input-group-advanced-search-input-form-with-autocomplete-example-username" |
| 2011 |
name="text-input-group-advanced-search-input-form-with-autocomplete-example-username" |
| 2012 |
/> |
| 2013 |
</span> |
| 2014 |
</div> |
| 2015 |
</div> |
| 2016 |
<div class="pf-v6-c-form__group"> |
| 2017 |
<div class="pf-v6-c-form__group-label"><label |
| 2018 |
class="pf-v6-c-form__label" |
| 2019 |
for="text-input-group-advanced-search-input-form-with-autocomplete-example-firstname" |
| 2020 |
> |
| 2021 |
<span class="pf-v6-c-form__label-text">First name</span></label> |
| 2022 |
</div> |
| 2023 |
<div class="pf-v6-c-form__group-control"> |
| 2024 |
<span class="pf-v6-c-form-control"> |
| 2025 |
<input |
| 2026 |
type="text" |
| 2027 |
value="ned" |
| 2028 |
id="text-input-group-advanced-search-input-form-with-autocomplete-example-firstname" |
| 2029 |
name="text-input-group-advanced-search-input-form-with-autocomplete-example-firstname" |
| 2030 |
/> |
| 2031 |
</span> |
| 2032 |
</div> |
| 2033 |
</div> |
| 2034 |
<div class="pf-v6-c-form__group"> |
| 2035 |
<div class="pf-v6-c-form__group-label"><label |
| 2036 |
class="pf-v6-c-form__label" |
| 2037 |
for="text-input-group-advanced-search-input-form-with-autocomplete-example-group" |
| 2038 |
> |
| 2039 |
<span class="pf-v6-c-form__label-text">Group</span></label> |
| 2040 |
</div> |
| 2041 |
<div class="pf-v6-c-form__group-control"> |
| 2042 |
<span class="pf-v6-c-form-control"> |
| 2043 |
<input |
| 2044 |
type="text" |
| 2045 |
id="text-input-group-advanced-search-input-form-with-autocomplete-example-group" |
| 2046 |
name="text-input-group-advanced-search-input-form-with-autocomplete-example-group" |
| 2047 |
/> |
| 2048 |
</span> |
| 2049 |
</div> |
| 2050 |
</div> |
| 2051 |
<div class="pf-v6-c-form__group"> |
| 2052 |
<div class="pf-v6-c-form__group-label"><label |
| 2053 |
class="pf-v6-c-form__label" |
| 2054 |
for="text-input-group-advanced-search-input-form-with-autocomplete-example-email" |
| 2055 |
> |
| 2056 |
<span class="pf-v6-c-form__label-text">Email</span></label> |
| 2057 |
</div> |
| 2058 |
<div class="pf-v6-c-form__group-control"> |
| 2059 |
<span class="pf-v6-c-form-control"> |
| 2060 |
<input |
| 2061 |
type="text" |
| 2062 |
id="text-input-group-advanced-search-input-form-with-autocomplete-example-email" |
| 2063 |
name="text-input-group-advanced-search-input-form-with-autocomplete-example-email" |
| 2064 |
/> |
| 2065 |
</span> |
| 2066 |
</div> |
| 2067 |
</div> |
| 2068 |
<div class="pf-v6-c-form__group pf-m-action"> |
| 2069 |
<div class="pf-v6-c-form__actions"> |
| 2070 |
<button |
| 2071 |
class="pf-v6-c-button pf-m-primary" |
| 2072 |
id="submit-advanced-search-expanded-with-autocomplete" |
| 2073 |
type="submit" |
| 2074 |
aria-labelledby="submit-advanced-search-expanded-with-autocomplete search-input-group-advanced-search-expanded-with-autocomplete" |
| 2075 |
> |
| 2076 |
<span class="pf-v6-c-button__text">Submit</span> |
| 2077 |
</button> |
| 2078 |
<button |
| 2079 |
class="pf-v6-c-button pf-m-link" |
| 2080 |
id="reset-advanced-search-expanded-with-autocomplete" |
| 2081 |
type="submit" |
| 2082 |
aria-labelledby="reset-advanced-search-expanded-with-autocomplete search-input-group-advanced-search-expanded-with-autocomplete" |
| 2083 |
> |
| 2084 |
<span class="pf-v6-c-button__text">Reset</span> |
| 2085 |
</button> |
| 2086 |
</div> |
| 2087 |
</div> |
| 2088 |
</form> |
| 2089 |
</div> |
| 2090 |
</div> |
| 2091 |
</div> |
| 2092 |
|
| 2093 |
<div class="pf-v6-c-menu"> |
| 2094 |
<div class="pf-v6-c-menu__content"> |
| 2095 |
<ul class="pf-v6-c-menu__list" role="menu"> |
| 2096 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 2097 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 2098 |
<span class="pf-v6-c-menu__item-main"> |
| 2099 |
<span class="pf-v6-c-menu__item-text">nancy</span> |
| 2100 |
</span> |
| 2101 |
</button> |
| 2102 |
</li> |
| 2103 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 2104 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 2105 |
<span class="pf-v6-c-menu__item-main"> |
| 2106 |
<span class="pf-v6-c-menu__item-text">ned</span> |
| 2107 |
</span> |
| 2108 |
</button> |
| 2109 |
</li> |
| 2110 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 2111 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 2112 |
<span class="pf-v6-c-menu__item-main"> |
| 2113 |
<span class="pf-v6-c-menu__item-text">neil</span> |
| 2114 |
</span> |
| 2115 |
</button> |
| 2116 |
</li> |
| 2117 |
<li class="pf-v6-c-menu__list-item" role="none"> |
| 2118 |
<button class="pf-v6-c-menu__item" type="button" role="menuitem"> |
| 2119 |
<span class="pf-v6-c-menu__item-main"> |
| 2120 |
<span class="pf-v6-c-menu__item-text">nicole</span> |
| 2121 |
</span> |
| 2122 |
</button> |
| 2123 |
</li> |
| 2124 |
</ul> |
| 2125 |
</div> |
| 2126 |
</div> |
| 2127 |
</div> |
| 2128 |
|
| 2129 |
``` |
| 2130 |
|
| 2131 |
### Usage |
| 2132 |
|
| 2133 |
| Class | Applied to | Outcome | |
| 2134 |
| -- | -- | -- | |
| 2135 |
| `.pf-v6-c-text-input-group` | `<div>` | Creates a text input group. *Required* | |
| 2136 |
| `.pf-v6-c-text-input-group__main` | `<div>` | Creates a wrapper for the main content. *Required* | |
| 2137 |
| `.pf-v6-c-text-input-group__text` | `<span>` | Creates the text container. *Required*| |
| 2138 |
| `.pf-v6-c-text-input-group__icon` | `<span>` | Creates a container for an icon. | |
| 2139 |
| `.pf-v6-c-text-input-group__text-input` | `<input>` | Creates a text input. *Required* | |
| 2140 |
| `.pf-v6-c-text-input-group__utilities` | `<div>` | Creates text input utilities container. | |
| 2141 |
| `.pf-v6-c-text-input-group__group` | `<div>` | Creates text input prev/next nav group. | |
| 2142 |
| `.pf-m-plain` | `.pf-v6-c-text-input-group` | Applies plain styling. Only use this variant when the text input group is contained in an ancestor with its own border or background styling. | |
| 2143 |
| `.pf-m-disabled` | `.pf-v6-c-text-input-group` | Applies disabled styling. The `<input>` should also be `disabled`. | |
| 2144 |
| `.pf-m-success` | `.pf-v6-c-text-input-group` | Applies success validation styling. | |
| 2145 |
| `.pf-m-warning` | `.pf-v6-c-text-input-group` | Applies warning validation styling. | |
| 2146 |
| `.pf-m-error` | `.pf-v6-c-text-input-group` | Applies error validation styling. | |
| 2147 |
| `.pf-m-icon` | `.pf-v6-c-text-input-group__main` | Applies styling when icons are included in the container. | |
| 2148 |
| `.pf-m-status` | `.pf-v6-c-text-input-group__icon` | Applies status styling to the icon, matching the status modifier applied to `.pf-v6-c-text-input-group`. | |
| 2149 |
| `.pf-m-hint` | `.pf-v6-c-text-input-group__text-input` | Applies styling when hints are included in the container. | |