snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
24
apps/v4/examples/aria/progress-controlled.tsx
Normal file
24
apps/v4/examples/aria/progress-controlled.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
"use client"
|
||||
|
||||
import * as React from "react"
|
||||
|
||||
import { Progress } from "@/styles/aria-nova/ui/progress"
|
||||
import { Slider } from "@/styles/aria-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 aria-label="Loading" value={value} className="w-full" />
|
||||
<Slider
|
||||
aria-label="Progress"
|
||||
value={value}
|
||||
onChange={(value) => setValue(value as number)}
|
||||
minValue={0}
|
||||
maxValue={100}
|
||||
step={1}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user