mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-02 08:58:36 +00:00
* feat(www): add login blocks * chore(www): restructure for blocks * chore: build registry * chore: clean up chunks * fix(www): chart categories * feat(www): big registry refactor * feat(www): update blocks * feat: complex blocks * fix: update schema * feat: sync new-york and default * fix: lint * feat: move charts * fix(www): code * fix: src path * chore: rebuild registry * fix: screenshot * fix: set new-york as default
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
|
|
import { Progress } from "@/registry/default/ui/progress"
|
|
|
|
export default 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%]" />
|
|
}
|