mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 15:14:12 +00:00
24 lines
501 B
TypeScript
24 lines
501 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
|
|
import { Progress } from "@/styles/radix-nova/ui/progress"
|
|
import { Slider } from "@/styles/radix-nova/ui/slider"
|
|
|
|
export function ProgressControlled() {
|
|
const [value, setValue] = React.useState([50])
|
|
|
|
return (
|
|
<div className="flex w-full max-w-sm flex-col gap-4">
|
|
<Progress value={value[0]} />
|
|
<Slider
|
|
value={value}
|
|
onValueChange={setValue}
|
|
min={0}
|
|
max={100}
|
|
step={1}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|