// @flow /* eslint-disable react-hooks/rules-of-hooks */ import * as React from 'react'; import TextInput from './TextInput'; import notes from './TextInput.stories.md'; export const basic = () => ; export const withDescription = () => ( ); export const withLongBreakableStrings = () => ( ); export const withLongUnbreakableStrings = () => ( ); export const error = () => ( ); export const loading = () => ( ); export const valid = () => ( ); export const requiredWithOnChange = () => { const [input, setInput] = React.useState({ error: 'required', value: '', }); return ( setInput({ error: e.target.value ? '' : 'required', value: e.target.value })} /> ); }; export default { title: 'Components/TextInput', component: TextInput, parameters: { notes, }, };