Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: CheckBox の Story を見直し #5031

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 0 additions & 158 deletions packages/smarthr-ui/src/components/CheckBox/CheckBox.stories.tsx

This file was deleted.

195 changes: 0 additions & 195 deletions packages/smarthr-ui/src/components/CheckBox/VRTCheckBox.stories.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from 'react'

import { CheckBox } from '../CheckBox'

import type { Meta, StoryObj } from '@storybook/react'

export default {
title: 'Forms(フォーム)/CheckBox',
component: CheckBox,
render: (args) => <CheckBox {...args}>CheckBox</CheckBox>,
args: {},
parameters: {
chromatic: { disableSnapshot: true },
},
} as Meta<typeof CheckBox>

export const Playground: StoryObj<typeof CheckBox> = {
args: {},
}

export const Mixed: StoryObj<typeof CheckBox> = {
name: 'mixed',
args: {
checked: true,
mixed: true,
},
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed は checked ありきなので、ここだけ input 要素の props を指定しちゃってます。


export const Error: StoryObj<typeof CheckBox> = {
name: 'error',
args: {
error: true,
},
}
Loading
Loading