Skip to content

Commit bbdea91

Browse files
committed
make intent available easily on ProgressBar storybook example
1 parent c0b6276 commit bbdea91

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/ProgressBar/Stories/ProgressBar.stories.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import React from "react";
22
import { Meta, StoryFn } from "@storybook/react";
33

4+
import { helpersArgTypes } from "../../../../.storybook/helpers";
45
import { ProgressBar } from "../../../../index";
56
export default {
67
title: "Components/ProgressBar",
78
component: ProgressBar,
8-
argTypes: {},
9+
argTypes: {
10+
intent: {
11+
...helpersArgTypes.exampleIntent,
12+
options: ["UNDEFINED", "primary", "success", "warning", "danger"],
13+
},
14+
},
915
} as Meta<typeof ProgressBar>;
1016

1117
const ProgressBarExample: StoryFn<typeof ProgressBar> = (args) => <ProgressBar {...args}></ProgressBar>;

0 commit comments

Comments
 (0)