import { Button, Popover } from '../'; import { Story } from '@storybook/react'; import { PopoverProps } from './Popover'; import { useState } from 'react'; export default { title: 'Components/Popover', component: Popover, parameters: { layout: 'centered', }, }; const Template: Story = ({ placement, title, children, content, }) => ( {children} ); export const Default = Template.bind({}); Default.args = { content: ({}) =>
I'm a popover
, children: , title: 'A title !', placement: 'bottom', }; export const Controlled = () => { const [visible, setVisible] = useState(false); return ( <> (
World
)} /> ); };