import type { Meta, StoryObj } from "@storybook/react"; import { Dropdown, DropdownOption } from "../src/components/Dropdown/Dropdown"; import { PdfIcon } from "../src/components/WebFileIcon/PdfIcon"; import { ImageIcon } from "../src/components/WebFileIcon/ImageIcon"; import { ChangeEvent, useState } from "react"; const meta = { title: "Forms/Dropdown", component: Dropdown, parameters: { layout: "centered", }, tags: ["autodocs"], argTypes: {}, } satisfies Meta; export default meta; type Story = StoryObj; const Template = () => { const [value, setValue] = useState(""); const onChange = (e: ChangeEvent) => setValue(e.currentTarget.value); const onSelected = (o: DropdownOption) => setValue(o.title); return ( ); }; export const Default = Template.bind({}); export const CustomStyle: Story = { args: { placeholder: "Select your file", options: [], style: { "--codex-input-border": "1px solid red" }, value: "", onChange: () => "", }, };