Back to Shark UI

Progress

docs/components/progress

latest6.3 KB
Original Source

Sections

Components

Utilities

Forms

Hooks

Progress

Copy Markdown

Displays task progress with a linear indicator.

DocsAPI

PreviewCode

Installation#

CLIManual

pnpmbunnpmyarn

pnpm dlx shadcn@latest add @shark/progress

Usage#

import { Progress } from "@/components/ui/progress";
<Progress value={50} />

Controlled#

Use value and to control the progress bar.

PreviewCode

Controlled progress

Orientation#

Use the orientation prop to orient the progress bar horizontally or vertically.

Horizontal#

PreviewCode

Vertical#

PreviewCode

Examples#

With label#

Use ProgressValue and FieldLabel to add a label to the progress bar.

PreviewCode

Upload progress66%

Indeterminate#

Use the indeterminate prop when the completion percentage is unknown.

PreviewCode

Establishing connection...

API Reference#

Progress#

Root element of the progress bar.

PropTypeDefault
value`numbernull`
defaultValuenumber-
onValueChange(details: ValueChangeDetails) => void-
indeterminatebooleanfalse
minnumber0
maxnumber100
orientation`"horizontal""vertical"`
classNamestring-

For a complete list of props, see the Ark UI documentation.

[

Previous page

Popover ](/docs/components/popover)[

Next page

Prose ](/docs/components/prose)

On This Page

InstallationUsageControlledOrientationHorizontalVerticalExamplesWith labelIndeterminateAPI ReferenceProgress