import "./ChoicesSelect"; import "./HtmlSelect"; import "./ReactSelect"; import { Meta, StoryObj } from "@storybook/react-vite"; import { fn } from "storybook/test"; import { useValue } from "../../../__fixtures__/useValue.hook"; import { Select } from "../Select"; const options = [ { label: "Option 1", value: "option-1" }, { label: "Option 2", value: "option-2" }, { label: "Option 3", value: "option-3" }, { label: "Option 4", value: "option-4" }, { label: "Option 6", value: "option-6" } ]; export default { title: "forms/Select/All", component: Select, parameters: { layout: "centered", backgrounds: { default: "pearl" }, docs: { description: {} } }, args: {}, argTypes: { label: { control: "text" }, name: { control: "text" }, value: { control: "text" }, size: { control: "radio", options: ["small", "normal"] }, placeholder: { control: "text" }, options: { control: "object" }, onChange: { action: "onChange" } }, tags: ["autodocs"], render(args) { // eslint-disable-next-line react-hooks/rules-of-hooks const { value, onChange } = useValue(args); return (