import React from 'react'; import { ComponentMeta, ComponentStory } from '@storybook/react'; import Modal from './Modal'; import { Icon } from '../Icon'; import { iconTypes } from '../Icon'; import colors from '../../styles/colors'; import { Input } from '../Input'; import { useArgs } from '@storybook/addons'; import { Button } from '../Button'; import Dropdown from '../Dropdown/Dropdown'; import { Typography } from '../Typography'; import color from '../../styles/colors'; const hasPositionAbsoluteFix = { transform: 'scale(1)', height: '90vh', }; export default { title: '5.Popup/Modal', component: Modal, decorators: [ (storyFn) =>
This is a demo on how to use headerHasBottomBorder{' '} props?
Wait until the file is ready to be downloaded
Send instruction to reset password
Send instruction to reset password
, ], }; export const CustomOkColor = Template.bind({}); CustomOkColor.args = { title: 'Delete Account', okText: 'Yes! I am 100% sure!', okButtonColor: 'red', hasCancel: false, children: [Are you sure you want to delete your account?
, ], }; export const MaxHeight = Template.bind({}); MaxHeight.args = { id: 'height', title: 'If the modal wont fix in view it becomes scrollable', isVisible: true, children: [Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
Moralis web3uiKit will be PAMP!
this Modal is 900px width (and will scale down with screen size)
, ], width: '900px', }; export const CustomFooter = Template.bind({}); CustomFooter.args = { title: 'This is a custom Footer Modal', children: [Modal Body!
, ], hasCancel: false, customFooter: , }; export const CustomCloseButton = Template.bind({}); CustomCloseButton.args = { id: 'regular', title: 'Confirm', isVisible: true, closeButton: ( ), children: [Proceed uploading?