Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
- Typography
x
"use client";
import * as React from "react";
import { Progress } from "@/components/ui/progress";
Installation
$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.com/r/progress.json
Usage
import { Progress } from "@/components/ui/progress";<Progress value={33} />Composition
With label and value
Use ProgressLabel and ProgressValue to add a label and value display.
import {
Progress,
ProgressLabel,
ProgressValue,
} from "@/components/ui/progress";
<Progress value={56} className="w-full max-w-sm">
<ProgressLabel>Upload progress</ProgressLabel>
<ProgressValue />
</Progress>;Progress
├── ProgressLabel
├── ProgressValue
└── ProgressTrack
└── ProgressIndicatorLabel
Use ProgressLabel and ProgressValue to add a label and value display.
Upload progress56%
x
import {
Progress,
ProgressLabel,
ProgressValue,
} from "@/components/ui/progress";
Controlled
A progress bar that can be controlled by a slider.
x
"use client";
import * as React from "react";
import { Progress } from "@/components/ui/progress";
import { Slider } from "@/components/ui/slider";RTL
To enable RTL support in shadcn/ui, see the RTL configuration guide.
تقدم الرفع٥٦%
x
"use client";
import * as React from "react";
import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";API Reference
See the Base UI Progress documentation.