import React, { useState } from 'react' import { type Meta, type StoryObj } from '@storybook/react-vite' import { DocsTemplate } from '../../../.storybook' import TableCheckbox from './TableCheckbox' const meta: Meta = { title: 'Components/Tables/Components/TableCheckbox', component: TableCheckbox, parameters: { docs: { page: () => ( This checkbox component utilizes the standard{' '} Checkbox component, but has a Cell{' '} wrapper around it with a style of width: 18px. } infoBullets={[ This should only be used when utilizing the{' '} CustomTable , ]} /> ), }, }, } export default meta type Story = StoryObj const Template: Story = { render: function Render(args) { const { checked } = args const [checkedState, setCheckedState] = useState(checked) const checkHandler = () => { setCheckedState(!checkedState) } return ( ) }, } export const Basic: Story = { ...Template, args: { name: 'table_checkbox', checked: false, }, }