import React, { useState } from "react"; import Select from "../app/components/Select"; export default { title: "Forms/Select", component: Select, argTypes: { size: { control: { type: "select" }, options: ["small", "medium", "large"], }, labelVariant: { control: { type: "select" }, options: ["default", "horizontal"], }, state: { control: { type: "select" }, options: ["default", "hover", "focus", "error", "disabled"], }, disabled: { control: { type: "boolean" }, }, error: { control: { type: "boolean" }, }, placeholder: { control: { type: "text" }, }, label: { control: { type: "text" }, }, }, }; const Template = (args) => { const [value, setValue] = useState(""); return ( setSmallValue(e.target.value)} placeholder="Select" > ); }; export const AllStates = () => { const [defaultValue, setDefaultValue] = useState(""); const [errorValue, setErrorValue] = useState(""); const [disabledValue, setDisabledValue] = useState(""); return (
); };