import { Meta, StoryObj } from "@storybook/react-vite"; import { useState } from "react"; import { Button } from "../../button/Button"; import { Input, inputConfig } from "./Input"; import { Loader } from "../../loader/Loader"; const meta = { title: "Components/fields/Text", component: Input, argTypes: { prefix: { control: "text", }, suffix: { control: "text", }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Playbook: Story = { args: { disabled: false, prefix: "", suffix: "", }, }; export const Context = () => { const [counter, setCounter] = useState(0); const [isLoading, setIsLoading] = useState(true); return (
} /> } />
} />
} />{" "} } /> } /> } /> { if (e.target.validity.valid) { setCounter(e.target.valueAsNumber); } }} />
); };