import React, { ChangeEvent, useCallback, useState } from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { Checkbox as CheckboxComponent, CheckboxProps, } from "../src/components/checkbox"; export default { title: "Input/Checkbox", component: CheckboxComponent, } as Meta; const Component = (props: CheckboxProps) => { const [checked, setChecked] = useState(false); const handleChange = useCallback((event: ChangeEvent) => { setChecked(event.target.checked); }, []); return ( ); }; export const Checkbox: StoryObj = { render: Component, args: { label: "Checkbox", }, };