import React from 'react';
import { ProgressBar } from '../src/lib/components/progressbar/ProgressBar.component';
import { Wrapper, Title } from './common';
export default {
title: 'Components/Progress & loading/ProgressBar',
component: ProgressBar,
decorators: [(story) =>
{story()}
],
args: {
percentage: 50,
buildinLabel: '50%',
backgroundColor: '#87929D',
},
argTypes: {
color: {
control: {
type: 'color',
},
},
backgroundColor: {
control: {
type: 'color',
},
},
},
};
export const Basic = {};
const sizes = ['smaller', 'small', 'base', 'large', 'larger'];
export const Scale = {
render: (args) => {
return sizes.map((size) => {
return (
);
});
},
};
export const WithInfos = {
args: {
topLeftLabel: 'Usage',
topRightLabel: '50%',
bottomLeftLabel: '5.17TB STORED - 13TB USED',
bottomRightLabel: '12.9TB FREE - 25.83TB TOTAL',
},
};
export const WithAnimation = {
args: {
isAnimation: true,
},
};
export const DiffrentColors = {
render: (args) => (
),
};
export const Default = {
render: ({}) => {
return (
Smaller
Base
Large with animation
Larger
Different colors
);
},
};