| 1 |
import { Fragment } from 'react'; |
| 2 |
import DollarSignIcon from '@patternfly/react-icons/dist/esm/icons/dollar-sign-icon'; |
| 3 |
import { Button, TextArea, InputGroup, InputGroupText, InputGroupItem, TextInput } from '@patternfly/react-core'; |
| 4 |
|
| 5 |
export const InputGroupWithSiblings: React.FunctionComponent = () => ( |
| 6 |
<Fragment> |
| 7 |
<InputGroup> |
| 8 |
<InputGroupItem> |
| 9 |
<Button id="textAreaButton1" variant="control"> |
| 10 |
Button |
| 11 |
</Button> |
| 12 |
</InputGroupItem> |
| 13 |
<InputGroupItem isFill> |
| 14 |
<TextArea name="textarea1" id="textarea1" aria-label="textarea with buttons" /> |
| 15 |
</InputGroupItem> |
| 16 |
<InputGroupItem> |
| 17 |
<Button variant="control">Button</Button> |
| 18 |
</InputGroupItem> |
| 19 |
</InputGroup> |
| 20 |
<br /> |
| 21 |
<InputGroup> |
| 22 |
<InputGroupItem> |
| 23 |
<Button id="textAreaButton3" variant="control"> |
| 24 |
Button |
| 25 |
</Button> |
| 26 |
</InputGroupItem> |
| 27 |
<InputGroupItem> |
| 28 |
<Button variant="control">Button</Button> |
| 29 |
</InputGroupItem> |
| 30 |
<InputGroupItem isFill> |
| 31 |
<TextArea name="textarea2" id="textarea2" aria-label="textarea with 3 buttons" /> |
| 32 |
</InputGroupItem> |
| 33 |
<InputGroupItem> |
| 34 |
<Button variant="control">Button</Button> |
| 35 |
</InputGroupItem> |
| 36 |
</InputGroup> |
| 37 |
<br /> |
| 38 |
<InputGroup> |
| 39 |
<InputGroupText> |
| 40 |
<DollarSignIcon /> |
| 41 |
</InputGroupText> |
| 42 |
<InputGroupItem isFill> |
| 43 |
<TextInput |
| 44 |
id="textInput-with-siblings" |
| 45 |
name="textInput-with-siblings" |
| 46 |
type="number" |
| 47 |
aria-label="Dollar amount input example" |
| 48 |
/> |
| 49 |
</InputGroupItem> |
| 50 |
<InputGroupText>.00</InputGroupText> |
| 51 |
</InputGroup> |
| 52 |
</Fragment> |
| 53 |
); |