import { ComponentMeta, ComponentStory } from "@storybook/react"; import { Col, Row } from "antd"; import React, { useState } from "react"; import { Button, Drawer } from "../Starship"; import "../Styles/index.scss"; // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export export default { title: "Example/Drawer", component: Drawer, argTypes: { placement: { control: { type: "select", options: ["top", "bottom", "left", "right"], }, }, }, // More on argTypes: https://storybook.js.org/docs/react/api/argtypes } as ComponentMeta; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args const Template: ComponentStory = (args) => { const [showDrawer, setShowDrawer] = useState(false); return ( <> {/* primary button only text */} { setShowDrawer(false); }} visible={showDrawer} {...args} >

Some contents...

Some contents...

Some contents...

{/* primary button only text */} ); }; export const StarshipDrawer = Template.bind({}); // More on args: https://storybook.js.org/docs/react/writing-stories/args StarshipDrawer.args = { placement: "bottom", title: "Starship Drawer" };