import React from 'react';
import { TextInput } from '@breakaway/preact-core';

export const TextInputBasic: React.FunctionComponent = () => {
  const [value, setValue] = React.useState('');
  return (
    <TextInput
      value={value}
      type="text"
      onChange={(_event, value) => setValue(value)}
      aria-label="text input example"
    />
  );
};
