[11/n][Storybook] Modal argTypes update (#48)

This commit is contained in:
Vivian Phung 2024-05-14 17:29:38 -04:00 committed by GitHub
commit a95f18a66b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,29 @@ const meta: Meta<typeof Modal> = {
component: Modal, component: Modal,
title: 'Components/Modal', title: 'Components/Modal',
tags: ['autodocs'], 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; export default meta;