import React from 'react' import type { Meta, StoryObj } from '@storybook/react' import { ProgressBar } from '../components' import { ColorVariant } from '../types' const colors: ColorVariant[] = [ 'inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning', ] const meta = { title: 'Display/ProgressBar', component: ProgressBar, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: {}, } satisfies Meta export default meta type Story = StoryObj const defaultArgs = { disabled: false, } export const Playground: Story = { args: { label: 'Progress', total: 100, color: 'primary', value: 10, }, } export const ProgressBarBasic = () => (
) ProgressBarBasic.storyName = 'ProgressBar Basic' export const ProgressBarTitle: Story = () => (
) ProgressBarTitle.storyName = 'ProgressBar With Title' export const ProgressBarColors: Story = () => ( <>
) ProgressBarColors.storyName = 'ProgressBar Colors' export const ProgressBarCustomColors: Story = () => ( <>
Custom Color Green
} />
) ProgressBarCustomColors.storyName = 'ProgressBar Custom Colors'