From ccc36fd175b3e2803c041e5133a5d18d7ba62ce3 Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Tue, 14 May 2024 16:05:40 -0400 Subject: [PATCH] [4/n][Storybook] Modal argTypes update --- .../src/stories/Components/Modal.stories.tsx | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/stories/Components/Modal.stories.tsx b/packages/frontend/src/stories/Components/Modal.stories.tsx index 3d3d4edc..16fd9724 100644 --- a/packages/frontend/src/stories/Components/Modal.stories.tsx +++ b/packages/frontend/src/stories/Components/Modal.stories.tsx @@ -7,7 +7,29 @@ const meta: Meta = { component: Modal, title: 'Components/Modal', tags: ['autodocs'], - argTypes: {}, + argTypes: { + children: { + control: 'object', + }, + hasCloseButton: { + type: 'boolean', + }, + hasOverlay: { + type: 'boolean', + }, + preventClickOutsideToClose: { + type: 'boolean', + }, + fullPage: { + type: 'boolean', + }, + }, + args: { + hasCloseButton: true, + hasOverlay: true, + preventClickOutsideToClose: false, + fullPage: false, + }, }; export default meta;