mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
17 lines
377 B
TypeScript
17 lines
377 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
|
|
import { Progress } from "@/components/ui/progress"
|
|
|
|
export function ProgressDemo() {
|
|
const [progress, setProgress] = React.useState(13)
|
|
|
|
React.useEffect(() => {
|
|
const timer = setTimeout(() => setProgress(66), 500)
|
|
return () => clearTimeout(timer)
|
|
}, [])
|
|
|
|
return <Progress value={progress} className="w-[60%]" />
|
|
}
|