import { ComponentMeta } from '@storybook/react'; import { Button, Dialog } from '@tih/ui'; import React, { useState } from 'react'; export default { title: 'Dialog', component: Dialog, argTypes: { title: { control: 'text', }, }, } as ComponentMeta; export function Basic({ children, title }) { const [isShown, setIsShown] = useState(false); return (
); } Basic.args = { title: 'Lorem ipsum, dolor sit amet', children: (
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eius aliquam laudantium explicabo pariatur iste dolorem animi vitae error totam. At sapiente aliquam accusamus facere veritatis.
), };