Progress Bar provides visual feedback on the completion status of a task. It supports both default and small variants, with optional dismiss functionality and success messages.
Example
25%
50%
75%
Upload complete!
Props
PropsCode snippet
Prop
Type
Default value
Description
Prop
progress
Type
number
Default value
0
Description
Progress value from 0 to 100 representing the completion percentage
Prop
type
Type
"default" | "small"
Default value
"default"
Description
Size variant of the progress bar
Prop
label
Type
ReactNode
Default value
undefined
Description
Label text or content displayed above or beside the progress bar
Prop
error
Type
ReactNode
Default value
undefined
Description
Error message or content to display when progress fails
Prop
successMessage
Type
ReactNode
Default value
undefined
Description
Success message displayed when progress reaches 100%
Prop
dismissable
Type
boolean
Default value
false
Description
Whether the progress bar can be dismissed with a close button
Prop
onCancel
Type
() => void
Default value
undefined
Description
Callback function called when the dismiss button is clicked
Prop
orientation
Type
"horizontal" | "vertical"
Default value
"horizontal"
Description
Layout orientation - whether progress bar is horizontal or vertical
Prop
dir
Type
"start" | "end"
Default value
"start"
Description
Direction of progress fill - start (left/top) or end (right/bottom)