Command Palette

Search for a command to run...

Progress

shadcn/ui

Displays an indicator showing the completion progress of a task.

Progress
x
x
x

import { Progress } from "@/components/optics/progress";<div className="w-full max-w-md space-y-4">  <Progress value={33} />  <Progress value={66} />  <Progress value={100} /></div>

Installation

pnpm dlx shadcn@latest add @optics/progress

Props

<Progress />
Name
Type
render
React.ReactElement
format
Intl.NumberFormatOptions
getAriaValueText
((formattedValue: string, value: number) => string)
locale
Intl.LocalesArgument

<ProgressTrack />
Name
Type
render
React.ReactElement
format
Intl.NumberFormatOptions
getAriaValueText
((formattedValue: string, value: number) => string)
locale
Intl.LocalesArgument
<ProgressIndicator />
Name
Type
render
React.ReactElement
format
Intl.NumberFormatOptions
getAriaValueText
((formattedValue: string, value: number) => string)
locale
Intl.LocalesArgument
<ProgressLabel />
Name
Type
render
React.ReactElement
format
Intl.NumberFormatOptions
getAriaValueText
((formattedValue: string, value: number) => string)
locale
Intl.LocalesArgument
<ProgressValue />
Name
Type
render
React.ReactElement
format
Intl.NumberFormatOptions
getAriaValueText
((formattedValue: string, value: number) => string)
locale
Intl.LocalesArgument