@@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/react'
22import { useState } from 'react'
33
44import { CheckboxInput } from '@/components/common/input/CheckboxInput'
5+ import type { CheckboxInputProps } from '@/components/common/input/CheckboxInput'
56
67const meta : Meta < typeof CheckboxInput > = {
78 component : CheckboxInput ,
@@ -24,7 +25,7 @@ export const Default: Story = {
2425 checked : false ,
2526 disabled : false ,
2627 } ,
27- render : function Render ( args : any ) {
28+ render : function Render ( args : CheckboxInputProps ) {
2829 const [ checked , setChecked ] = useState ( false )
2930
3031 const handleChange = ( e : React . ChangeEvent < HTMLInputElement > ) => {
@@ -42,7 +43,7 @@ export const Check: Story = {
4243 checked : false ,
4344 disabled : false ,
4445 } ,
45- render : function Render ( args : any ) {
46+ render : function Render ( args : CheckboxInputProps ) {
4647 const [ checked , setChecked ] = useState ( false )
4748
4849 const handleChange = ( e : React . ChangeEvent < HTMLInputElement > ) => {
@@ -60,7 +61,7 @@ export const DisabledCheckbox: Story = {
6061 checked : false ,
6162 disabled : true ,
6263 } ,
63- render : function Render ( args : any ) {
64+ render : function Render ( args : CheckboxInputProps ) {
6465 return < CheckboxInput { ...args } />
6566 } ,
6667}
@@ -72,7 +73,7 @@ export const DisabledCheck: Story = {
7273 checked : false ,
7374 disabled : true ,
7475 } ,
75- render : function Render ( args : any ) {
76+ render : function Render ( args : CheckboxInputProps ) {
7677 return < CheckboxInput { ...args } />
7778 } ,
7879}
0 commit comments