Skip to content

Commit

Permalink
chore(Progress story): add controllable value prop
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Oct 2, 2024
1 parent 955c9e2 commit f18491a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/v2/components/ui/Progress.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import { Meta } from "@storybook/react"
import { ProgressIndicator, ProgressRoot } from "./Progress"

export const Progress = () => {
export const Progress = ({ value }: { value: number }) => {
return (
<ProgressRoot>
<ProgressIndicator value={0.44} />
<ProgressIndicator value={value} />
</ProgressRoot>
)
}

const meta: Meta<typeof Progress> = {
title: "Design system/Progress",
component: Progress,
args: {
value: 0.44,
},
}

export default meta

0 comments on commit f18491a

Please sign in to comment.