Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
added story for colored ProgressStep
Browse files Browse the repository at this point in the history
  • Loading branch information
qubis741 committed Sep 7, 2023
1 parent 47fe299 commit cb36744
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/components/progressTracker/progressTracker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
},
} as ComponentMeta<typeof ProgressTracker>;

export const defaultStory: ComponentStory<typeof ProgressTracker> = (args) => (
export const Basic: ComponentStory<typeof ProgressTracker> = (args) => (
<ProgressTracker {...args}>
{steps.map((step, index) => (
<ProgressTracker.ProgressStep
Expand All @@ -29,7 +29,28 @@ export const defaultStory: ComponentStory<typeof ProgressTracker> = (args) => (
</ProgressTracker>
);

defaultStory.args = {
Basic.args = {
done: false,
currentStep: 1,
color: 'mint',
labelPosition: 'top',
};

export const StepWithDifferentColor: ComponentStory<typeof ProgressTracker> = (args) => (
<ProgressTracker {...args}>
{steps.map((step, index) => (
<ProgressTracker.ProgressStep
label={step}
meta={`${10 + index * 3}/12/2020`}
key={index}
onClick={() => console.log('step clicked')}
color={index === 1 ? 'ruby' : undefined}
/>
))}
</ProgressTracker>
);

StepWithDifferentColor.args = {
done: false,
currentStep: 1,
color: 'mint',
Expand Down

0 comments on commit cb36744

Please sign in to comment.