Debian Codegraph @

node/@patternfly/react-core/src/components/TextInput/examples/TextInputBasic.tsx

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