@availity/mui-checkbox 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/lib/Checkbox.stories.tsx +8 -8
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -18,10 +18,10 @@ export default meta;
|
|
|
18
18
|
export const _Checkbox: StoryObj<typeof Checkbox> = {
|
|
19
19
|
render: (args: CheckboxProps) => (
|
|
20
20
|
<>
|
|
21
|
-
<Checkbox {...args} defaultChecked />
|
|
22
|
-
<Checkbox {...args} />
|
|
23
|
-
<Checkbox {...args} disabled />
|
|
24
|
-
<Checkbox {...args} disabled checked />
|
|
21
|
+
<Checkbox {...args} defaultChecked inputProps={{ 'aria-label': 'Default Checked example' }} />
|
|
22
|
+
<Checkbox {...args} inputProps={{ 'aria-label': 'Default Unchecked example' }} />
|
|
23
|
+
<Checkbox {...args} inputProps={{ 'aria-label': 'Disabled example' }} disabled />
|
|
24
|
+
<Checkbox {...args} inputProps={{ 'aria-label': 'Disabled Checked example' }} disabled checked />
|
|
25
25
|
</>
|
|
26
26
|
),
|
|
27
27
|
args: {
|
|
@@ -32,10 +32,10 @@ export const _Checkbox: StoryObj<typeof Checkbox> = {
|
|
|
32
32
|
export const _CustomCheckbox: StoryObj<typeof Checkbox> = {
|
|
33
33
|
render: (args: CheckboxProps) => (
|
|
34
34
|
<>
|
|
35
|
-
<Checkbox {...args} defaultChecked />
|
|
36
|
-
<Checkbox {...args} />
|
|
37
|
-
<Checkbox {...args} disabled />
|
|
38
|
-
<Checkbox {...args} disabled checked />
|
|
35
|
+
<Checkbox {...args} defaultChecked inputProps={{ 'aria-label': 'Default Checked example' }} />
|
|
36
|
+
<Checkbox {...args} inputProps={{ 'aria-label': 'Default Unchecked example' }} />
|
|
37
|
+
<Checkbox {...args} disabled inputProps={{ 'aria-label': 'Disabled example' }} />
|
|
38
|
+
<Checkbox {...args} disabled checked inputProps={{ 'aria-label': 'Disabled Checked example' }} />
|
|
39
39
|
</>
|
|
40
40
|
),
|
|
41
41
|
args: {
|