Skip to content

Commit

Permalink
feat: enhance ProgressBar stories with decorators for better visualiz…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
drikusroor committed Nov 14, 2024
1 parent c14e50e commit 1c61b3e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion frontend/src/stories/ProgressBar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,24 @@ export const Default = {
max: 100,
showPercentage: false,
label: "3 / 20",
size: "md",
},
decorators: [
(Story) => (
<div
style={{ width: "100%", height: "100%", backgroundColor: "#666", padding: "1rem" }}
>
<Story />
</div>
),
],
};

export const WithPercentage = {
args: {
value: 50,
max: 100,
showPercentage: true,
label: "3 / 20",
},
decorators: [
(Story) => (
Expand Down

0 comments on commit 1c61b3e

Please sign in to comment.