Components
- Accordion
- Action BarUpdated
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- BadgeUpdated
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- CalendarUpdated
- CardUpdated
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context MenuUpdated
- Data List
- Date Picker
- DialogUpdated
- DrawerUpdated
- Editable
- FieldUpdated
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- MarqueeUpdated
- Menu
- Native Select
- Number InputUpdated
- Pagination
- Popover
- Progress
- Prose
- QR Code
- Radio Group
- Rating
- Resizable
- Scroll Area
- Segment Group
- Select
- Separator
- Sheet
- Sidebar
- Signature Pad
- Skeleton
- Skip Nav
- Slider
- Spinner
- Status
- Steps
- Switch
- TableUpdated
- Tabs
- Textarea
- TimerUpdated
- ToastUpdated
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
Hooks
Installation#
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.
Orientation#
Use the orientation prop to orient the progress bar horizontally or vertically.
Horizontal#
Vertical#
Examples#
With label#
Use ProgressValue and FieldLabel to add a label to the progress bar.
66%
Indeterminate#
Use the indeterminate prop when the completion percentage is unknown.
API Reference#
Progress#
Root element of the progress bar.
| Prop | Type | Default |
|---|---|---|
value | number | null | - |
defaultValue | number | - |
onValueChange | (details: ValueChangeDetails) => void | - |
indeterminate | boolean | false |
min | number | 0 |
max | number | 100 |
orientation | "horizontal" | "vertical" | "horizontal" |
className | string | - |
For a complete list of props, see the Ark UI documentation.