import NewBooleanField from 'sentry/components/forms/fields/booleanField'; import RadioField from 'sentry/components/forms/fields/radioField'; import RangeField from 'sentry/components/forms/fields/rangeField'; import SelectField from 'sentry/components/forms/fields/selectField'; import TextField from 'sentry/components/forms/fields/textField'; import Form from 'sentry/components/forms/form'; export default { title: 'Components/Forms/Form', args: { alignRight: false, required: false, visible: true, disabled: false, flexibleControlStateSize: true, inline: true, stacked: true, }, }; export const Default = ({...fieldProps}) => { return (
{ return `${value} Toaster Strudle${value > 1 ? 's' : ''}`; }} {...fieldProps} /> ); }; Default.storyName = 'Form'; Default.parameters = { docs: { description: { story: 'Use the knobs to see how the different field props that can be used affect the form layout.', }, }, };