summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/loaders/progress-bar.stories.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-20 19:24:21 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-20 19:27:29 +0200
commita08291b1586858fc894a27d56f55f87a88f8dbd3 (patch)
tree0aa36c8add0ad0ecc07c0f7f20f5af3e2f7abe46 /src/components/atoms/loaders/progress-bar.stories.tsx
parent362cf45bc520a68a1c1be20e1189ca2307577dde (diff)
refactor(storybook): reorganize design system
Add more stories for each components and change some components categories for better organization.
Diffstat (limited to 'src/components/atoms/loaders/progress-bar.stories.tsx')
-rw-r--r--src/components/atoms/loaders/progress-bar.stories.tsx19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/components/atoms/loaders/progress-bar.stories.tsx b/src/components/atoms/loaders/progress-bar.stories.tsx
index 4fde5a7..fcd631c 100644
--- a/src/components/atoms/loaders/progress-bar.stories.tsx
+++ b/src/components/atoms/loaders/progress-bar.stories.tsx
@@ -1,8 +1,11 @@
import { ComponentMeta, ComponentStory } from '@storybook/react';
import ProgressBarComponent from './progress-bar';
+/**
+ * ProgressBar - Storybook Meta
+ */
export default {
- title: 'Atoms/Loaders',
+ title: 'Atoms/Loaders/ProgressBar',
component: ProgressBarComponent,
argTypes: {
'aria-label': {
@@ -68,9 +71,23 @@ const Template: ComponentStory<typeof ProgressBarComponent> = (args) => (
<ProgressBarComponent {...args} />
);
+/**
+ * Loaders Stories - Default Progress bar
+ */
export const ProgressBar = Template.bind({});
ProgressBar.args = {
current: 10,
min: 0,
max: 50,
};
+
+/**
+ * Loaders Stories - Progress bar With Info
+ */
+export const ProgressBarWithInfo = Template.bind({});
+ProgressBarWithInfo.args = {
+ current: 10,
+ info: 'Loaded: 10 / 50',
+ min: 0,
+ max: 50,
+};