Debian Codegraph @

node/@patternfly/react-core/src/components/InputGroup/examples/InputGroup.md

raw
1 ---
2 id: Input group
3 section: components
4 cssPrefix: pf-v6-c-input-group
5 propComponents: ['InputGroup', 'InputGroupItem', 'InputGroupText']
6 ---
7
8 import { Fragment, useRef, useState } from 'react';
9 import AtIcon from '@patternfly/react-icons/dist/esm/icons/at-icon';
10 import DollarSignIcon from '@patternfly/react-icons/dist/esm/icons/dollar-sign-icon';
11 import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
12
13 ## Examples
14
15 ### Basic
16
17 ```ts file='./InputGroupBasic.tsx'
18
19 ```
20
21 ### With textarea
22
23 ```ts file='./InputGroupWithTextarea.tsx'
24
25 ```
26
27 ### With dropdown
28
29 ```ts file='./InputGroupWithDropdown.tsx'
30
31 ```
32
33 ### With popover
34
35 using `appendTo` with ref to the `InputGroup` for the Popover so that the popover width will depend on the whole input group
36 ```ts file ='./InputGroupWithPopover.tsx'
37
38 ```
39
40 ### With multiple group siblings
41
42 ```ts file='./InputGroupWithSiblings.tsx'
43
44 ```