diff --git a/src/components/forms/DatePicker/DatePicker.stories.tsx b/src/components/forms/DatePicker/DatePicker.stories.tsx index 5643418de8..96f15e908f 100644 --- a/src/components/forms/DatePicker/DatePicker.stories.tsx +++ b/src/components/forms/DatePicker/DatePicker.stories.tsx @@ -13,6 +13,13 @@ export default { argTypes: { onSubmit: { action: 'submitted' }, disabled: { control: { type: 'boolean' } }, + validationStatus: { + control: { + type: 'select', + options: [undefined, 'success', 'error'], + }, + defaultValue: undefined, + } }, parameters: { docs: { @@ -45,14 +52,15 @@ We may find that we want to expose props for custom event handlers or even a ref type StorybookArguments = { onSubmit: React.FormEventHandler disabled?: boolean + validationStatus: 'success' | 'error' | undefined } export const completeDatePicker = ( argTypes: StorybookArguments ): React.ReactElement => (
- -