import type { Meta, StoryObj } from "@storybook/react"; import { Backdrop } from "../components/Backdrop/Backdrop"; import { useState } from "react"; import React from "react"; const meta = { title: "Overlays/Backdrop", component: Backdrop, parameters: { layout: "fullscreen", }, tags: ["autodocs"], argTypes: {}, } satisfies Meta; export default meta; type Story = StoryObj; const Template = () => { const [open, setOpen] = useState(false); const onClick = () => setOpen(true); return (
setOpen(false)} open={open} />
); }; export const Default: Story = Template.bind({});