Progress Primitive
Shows an indicator representing the advancement status of a task.
Installation
Install the component via your command line.
Install @radix-ui/react-progress
Copy/paste the following code for web to ~/components/primitives/progress/progress.web.tsx
Copy/paste the following code for native to ~/components/primitives/progress/progress.tsx
Copy/paste the following code for types to ~/components/primitives/progress/types.ts
Copy/paste the following code for exporting to ~/components/primitives/progress/index.ts
Copy/paste the following code for native to ~/components/primitives/progress/index.tsx
Copy/paste the following code for types to ~/components/primitives/progress/types.ts
Usage
Props
Root
Extends View
props
Prop | Type | Note |
---|---|---|
value | number | null | undefined | |
asChild | boolean | (optional) |
max | number | (optional) |
getValueLabel | (value: number, max: number): string | (optional) |
Indicator
Extends View
props
Prop | Type | Note |
---|---|---|
asChild | boolean | (optional) |