import _ from 'lodash'; import React, { useState } from 'react'; import { Story, Meta } from '@storybook/react'; import { IOverlayProps } from './Overlay'; import Overlay from './Overlay'; import Button from '../Button/Button'; export default { title: 'Utility/Overlay', component: Overlay, parameters: { docs: { description: { component: Overlay.peek.description, }, }, }, } as Meta; /* BASIC */ export const Basic: Story = (args) => { const [isShown, setIsShown] = useState(false); const handleOpenClose = (isShown: any) => { setIsShown(isShown); }; return (
User cannot interact with the background (except scrolling).
); }; /* No Modal */ export const NoModal: Story = (args) => { const [isShown, setIsShown] = useState(false); const handleOpenClose = (isShown: any) => { setIsShown(isShown); }; return (
User can still interact with the background.
); };