mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-20 05:09:27 +00:00
chore: update deps, apply updated eslint ocnfig
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import { useState } from 'react'
|
||||
|
||||
import { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import { Checkbox } from './checkbox'
|
||||
import { Meta, StoryObj } from '@storybook/react'
|
||||
const meta = {
|
||||
title: 'Components/Checkbox',
|
||||
component: Checkbox,
|
||||
tags: ['autodocs'],
|
||||
title: 'Components/Checkbox',
|
||||
} satisfies Meta<typeof Checkbox>
|
||||
|
||||
export default meta
|
||||
@@ -14,8 +13,8 @@ export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
export const Uncontrolled: Story = {
|
||||
args: {
|
||||
label: 'Click here',
|
||||
disabled: false,
|
||||
label: 'Click here',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -26,8 +25,8 @@ export const Controlled: Story = {
|
||||
return (
|
||||
<Checkbox
|
||||
{...args}
|
||||
label="Click here"
|
||||
checked={checked}
|
||||
label={'Click here'}
|
||||
onChange={() => setChecked(!checked)}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user