Version: 3.0.7
Progress
Progress is used to display the progress status for a task that takes a long time or consists of several steps.
Import#
Examples#
Basic#
Progress colorScheme#
Sizes#
Flat Progress#
Custom Track Color#
Props#
| Name | Type | Description | Default |
|---|---|---|---|
| value | number | Value of Progress. | 0 |
| size | string | Defines height of Progress | sm |
| colorScheme | string | The color scheme of the progress. This should be one of the color keys in the theme (e.g."green", "red"). | primary |
| isIndeterminate | any | Whether progress is indeterminate | false |
| min | number | Min progress value | 0 |
| max | number | Max progress value | 100 |
Progress implements Box
Styling#
NativeBase ships with a default theme for each component.
We can easily extend the progress component theme using extendTheme function as shown below.
Accessibility#
- Adheres to the
progressbarrole requirements. - On web,
aria-valuenow,aria-valueminandaria-valuemaxto ensure the progress percent is visible to screen readers. - On mobile, accessibilityValue is used to ensure it's announced by Talkback and VoiceOver.