import { useState, ComponentProps } from "react"; import { Meta, StoryObj } from "@storybook/react"; import { InputText } from "."; type Props = ComponentProps; export default { component: InputText, decorators: [ (Story, context) => { const [value, setValue] = useState(context.args.value || ""); return ; } ] } as Meta; export const Default: StoryObj = {};