-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Checkbox sidemenu's new tree format
- Loading branch information
1 parent
dfd369d
commit 6bbbf77
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* eslint-disable react/jsx-handler-names */ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import Checkbox from './Checkbox'; | ||
import { CheckboxWrapper } from './Checkbox.utils'; | ||
|
||
/** | ||
Use checkboxes when the user can select more than one option from a list. Make clear with helper text that this is the case. Use [radio buttons](https://cfpb.github.io/design-system/components/radio-buttons) when the user can choose only one option from a list. | ||
Source: https://cfpb.github.io/design-system/components/checkboxes | ||
*/ | ||
const meta: Meta<typeof Checkbox> = { | ||
title: 'Components (Verified)/Checkboxes', | ||
tags: ['autodocs'], | ||
component: Checkbox, | ||
argTypes: { | ||
disabled: { control: 'boolean' }, | ||
isLarge: { control: 'boolean' } | ||
} | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: _arguments => CheckboxWrapper(_arguments), | ||
name: 'Default', | ||
args: { | ||
id: 'default', | ||
label: 'Default', | ||
checked: false | ||
} | ||
}; |