"use client" import * as React from "react" import { Example, ExampleWrapper, } from "@/registry/bases/base/components/example" import { Item, ItemActions, ItemContent, ItemGroup, ItemMedia, ItemTitle, } from "@/registry/bases/base/ui/item" import { Progress, ProgressLabel, ProgressValue, } from "@/registry/bases/base/ui/progress" import { Slider } from "@/registry/bases/base/ui/slider" import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder" export default function ProgressExample() { return ( ) } function ProgressValues() { return (
) } function ProgressWithLabel() { return ( Upload progress ) } function ProgressControlled() { const [value, setValue] = React.useState(50) return (
setValue(value as number)} min={0} max={100} step={1} />
) } function FileUploadList() { const files = React.useMemo( () => [ { id: "1", name: "document.pdf", progress: 45, timeRemaining: "2m 30s", }, { id: "2", name: "presentation.pptx", progress: 78, timeRemaining: "45s", }, { id: "3", name: "spreadsheet.xlsx", progress: 12, timeRemaining: "5m 12s", }, { id: "4", name: "image.jpg", progress: 100, timeRemaining: "Complete", }, ], [] ) return ( {files.map((file) => ( {file.name} {file.timeRemaining} ))} ) }