Skip to content

Commit

Permalink
💩 - fix: added radio to storybook and fixed checkbox failing story
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaohs committed Jun 28, 2024
1 parent 5f77c7b commit fe4de28
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/form/input/input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ const meta: Meta<typeof Input> = {
clearable = false;
testValue = args.value || "on";
break;
case "radio":
input = await canvas.getByRole("radio");
clearable = false;
testValue = args.value || "on";
break;
case "number":
input = await canvas.getByRole("spinbutton");
break;
Expand Down Expand Up @@ -84,6 +89,17 @@ export const InputTypeCheckbox: Story = {
args: {
name: "input",
type: "checkbox",
value: "true",
},
argTypes: FORM_TEST_ARG_TYPES,
decorators: [FORM_TEST_DECORATOR],
};

export const InputTypeRadio: Story = {
args: {
name: "input",
type: "radio",
value: "true",
},
argTypes: FORM_TEST_ARG_TYPES,
decorators: [FORM_TEST_DECORATOR],
Expand Down

0 comments on commit fe4de28

Please sign in to comment.