import React from 'react' import { TextInputField } from '../' import { FIELD_ARGS, Story } from '../helpers/storybook' import { textStyles } from '../TextInput/TextInput' export default { title: 'TextInputField', component: TextInputField, argTypes: { ...FIELD_ARGS, textStyle: { options: textStyles }, }, args: { label: 'Input Label', name: 'tif', tooltip: 'Enter some text', placeholder: 'Placeholder', }, parameters: { cactus: { overrides: { maxWidth: '500px' } } }, } as const export const BasicUsage: Story = (args) => ( <> ) BasicUsage.args = { placeholder: 'Placeholder' } export const FixedWidthContainer: Story = (args) => (
) FixedWidthContainer.args = { error: 'The input you have entered is unequivocally invalid because we absolutely do not support the information you have provided.', }