node/@patternfly/react-core/src/components/TextArea/examples/TextAreaBasic.tsx
raw| 1 | import { useState } from 'react'; |
| 2 | import { TextArea } from '@patternfly/react-core'; |
| 3 | |
| 4 | export const TextAreaBasic: React.FunctionComponent = () => { |
| 5 | const [value, setValue] = useState(''); |
| 6 | return <TextArea value={value} onChange={(_event, value) => setValue(value)} aria-label="text area example" />; |
| 7 | }; |