import React, { useState } from 'react'; import type { ComponentMeta } from '@storybook/react'; import { Button, Dialog } from '@tih/ui'; export default { argTypes: { title: { control: 'text', }, }, component: Dialog, title: 'Dialog', } as ComponentMeta; export function Basic({ children, title, }: Pick, 'children' | 'title'>) { const [isShown, setIsShown] = useState(false); return (
); } Basic.args = { 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.
), title: 'Lorem ipsum, dolor sit amet', };