node/@patternfly/react-core/src/components/TextInputGroup/examples/TextInputGroupBasic.tsx
raw| 1 | import { useState } from 'react'; |
| 2 | import { TextInputGroup, TextInputGroupMain } from '@patternfly/react-core'; |
| 3 | |
| 4 | export const TextInputGroupBasic: React.FunctionComponent = () => { |
| 5 | const [value, setValue] = useState(''); |
| 6 | return ( |
| 7 | <TextInputGroup> |
| 8 | <TextInputGroupMain value={value} onChange={(_event, value) => setValue(value)} /> |
| 9 | </TextInputGroup> |
| 10 | ); |
| 11 | }; |