Skip to content

Commit

Permalink
chore(Progress): added stories (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjitrosch committed Apr 15, 2022
1 parent f5f385a commit 81fc70e
Showing 1 changed file with 59 additions and 3 deletions.
62 changes: 59 additions & 3 deletions src/Progress/Progress.stories.tsx
Expand Up @@ -8,10 +8,66 @@ export default {
component: Progress,
} as Meta

export const Default: Story<ProgressProps> = (args) => {
return <Progress {...args} />
const Template: Story<ProgressProps> = (args) => {
return (
<div className='flex flex-col gap-y-2'>
<Progress {...args} className="w-56" value={0} />
<Progress {...args} className="w-56" value={10} />
<Progress {...args} className="w-56" value={40} />
<Progress {...args} className="w-56" value={70} />
<Progress {...args} className="w-56" value={100} />
</div>
)
}

export const Default = Template.bind({})
Default.args = {
value: 50,
max: 100,
}

export const PrimaryColor = Template.bind({})
PrimaryColor.args = {
max: 100,
color: 'primary'
}

export const SecondaryColor = Template.bind({})
SecondaryColor.args = {
max: 100,
color: 'secondary'
}

export const AccentColor = Template.bind({})
AccentColor.args = {
max: 100,
color: 'accent'
}

export const SuccessColor = Template.bind({})
SuccessColor.args = {
max: 100,
color: 'success'
}

export const InfoColor = Template.bind({})
InfoColor.args = {
max: 100,
color: 'info'
}

export const WarningColor = Template.bind({})
WarningColor.args = {
max: 100,
color: 'warning'
}

export const ErrorColor = Template.bind({})
ErrorColor.args = {
max: 100,
color: 'error'
}

export const Indeterminate: Story<ProgressProps> = (args) => {
return <Progress {...args} className="w-56" />
}
Indeterminate.args = {}

0 comments on commit 81fc70e

Please sign in to comment.