Skip to content

Commit

Permalink
Fix ButtonUI story
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobArrow committed Nov 1, 2024
1 parent 8b9c6a5 commit b27f487
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
20 changes: 15 additions & 5 deletions src/stories/Library/Buttons/button-ui/ButtonUI.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
import { StoryFn, Meta } from "@storybook/react";

import { ButtonUI } from "./ButtonUI";
import { ButtonUI, ButtonUIProps } from "./ButtonUI";

export default {
title: "Library / Buttons / ButtonUI",
component: ButtonUI,
argTypes: {
content: {
control: "object",
},
ariaLabel: { control: "text" },
label: { control: "text" },
disabled: { control: "boolean" },
collapsible: { control: "boolean" },
size: { control: "select", options: ["small", "medium", "large"] },
variant: { control: "select", options: ["outline", "filled"] },
size: { control: "select" },
variant: { control: "select" },
},
args: {
label: "Se hele kalenderen",
content: {
kind: "LABEL",
label: "Se hele kalenderen",
},
ariaLabel: "Calendar button",
disabled: false,
collapsible: false,
size: "medium",
Expand All @@ -28,7 +36,9 @@ export default {
},
} as Meta<typeof ButtonUI>;

const Template: StoryFn<typeof ButtonUI> = (args) => <ButtonUI {...args} />;
const Template: StoryFn<typeof ButtonUI> = (args: ButtonUIProps) => (
<ButtonUI {...args} />
);

export const Default = Template.bind({});
Default.args = {};
Expand Down
6 changes: 4 additions & 2 deletions src/stories/Library/Buttons/button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StoryFn, Meta } from "@storybook/react";

import { Button } from "./Button";
import { Button, ButtonProps } from "./Button";

export default {
title: "Library / Buttons / Button",
Expand Down Expand Up @@ -30,7 +30,9 @@ export default {
},
} as Meta<typeof Button>;

const Template: StoryFn<typeof Button> = (args) => <Button {...args} />;
const Template: StoryFn<typeof Button> = (args: ButtonProps) => (
<Button {...args} />
);

export const Default = Template.bind({});
Default.args = {
Expand Down

0 comments on commit b27f487

Please sign in to comment.