Debian Codegraph @

node/@patternfly/react-core/src/components/TextArea/examples/TextAreaInvalid.tsx

raw
1 import { useState } from 'react';
2 import { TextArea } from '@patternfly/react-core';
3
4 export const TextAreaInvalid: React.FunctionComponent = () => {
5 const [value, setValue] = useState('');
6 return (
7 <TextArea
8 value={value}
9 onChange={(_event, value) => setValue(value)}
10 isRequired
11 validated={'error'}
12 aria-label="invalid text area example"
13 />
14 );
15 };