Skip to content

Progress Primitive

Types Primitives Slot Primitives

@radix-ui/react-progress


Shows an indicator representing the advancement status of a task.

Installation

Install @radix-ui/react-progress

Terminal window
npx expo 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

Usage

import * as ProgressPrimitive from '~/components/primitives/progress';
function Example() {
return (
<ProgressPrimitive.Root>
<ProgressPrimitive.Indicator />
</ProgressPrimitive.Root>
);
}

Props

Root

Extends View props

PropTypeNote
valuenumber | null | undefined
asChildboolean(optional)
maxnumber(optional)
getValueLabel(value: number, max: number): string(optional)

Indicator

Extends View props

PropTypeNote
asChildboolean(optional)