import type { Meta } from "@storybook/react"; import { useState } from "react"; import { Sheets } from "../src/components/Sheets/Sheets"; import { fn } from "@storybook/test"; const meta = { title: "Overlays/Sheets", component: Sheets, parameters: { layout: "fullscreen", }, tags: ["autodocs"], argTypes: {}, args: { onClose: fn(), }, } satisfies Meta; export default meta; const DefaultTemplate = (props: { onClose: () => void }) => { const [open, setOpen] = useState(false); const onClick = () => setOpen(true); const onClose = () => { props.onClose(); setOpen(false); }; return (
Hello world
); }; export const Default = DefaultTemplate.bind({});