-
-
Notifications
You must be signed in to change notification settings - Fork 492
Expand file tree
/
Copy pathCircularProgress.stories.tsx
More file actions
31 lines (27 loc) · 910 Bytes
/
CircularProgress.stories.tsx
File metadata and controls
31 lines (27 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { Meta, StoryFn } from "@storybook/react";
import type { CircularProgressProps } from "./ProgressCircular";
import { CircularProgress } from "./ProgressCircular";
export default {
title: "Components/Circular Progress",
component: CircularProgress,
decorators: [
(Story): JSX.Element => (
<div className="flex w-1/2 flex-col">
<Story />
</div>
),
],
} as Meta;
const CircularTemplate: StoryFn<CircularProgressProps> = (args) => <CircularProgress {...args} />;
export const CircularProgressBar = CircularTemplate.bind({});
CircularProgressBar.storyName = "Circular Progress";
CircularProgressBar.args = {
progress: 25,
};
export const CircularProgressBarWithText = CircularTemplate.bind({});
CircularProgressBarWithText.storyName = "Circular Progress With Text";
CircularProgressBarWithText.args = {
progress: 25,
labelText: true,
textLabel: "25%",
};