import { useState } from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { InputVector } from "./InputVector"; import { withActions } from "@storybook/addon-actions/decorator"; const meta: Meta = { component: InputVector, parameters: { actions: { handles: ["change", "blur", "focus"], }, }, decorators: [withActions], }; type Story = StoryObj; const InputVectorRender = () => { // Sets the hooks for both the label and primary props const [xyz, setXyz] = useState>({ x: "0", y: "0", z: "0", }); return ( setXyz(value)} /> ); }; export const Default: Story = { render: () => (
), }; export default meta;