🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@radix-ui/react-progress

Package Overview
Dependencies
Maintainers
6
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-progress

View docs [here](https://radix-ui.com/primitives/docs/components/progress).

1.1.7
latest
Source
npm
Version published
Weekly downloads
6.2M
21.54%
Maintainers
6
Weekly downloads
 
Created

What is @radix-ui/react-progress?

@radix-ui/react-progress is a React component library that provides a customizable and accessible progress bar component. It is part of the Radix UI suite, which focuses on providing unstyled, accessible components that can be easily styled to fit any design system.

What are @radix-ui/react-progress's main functionalities?

Basic Progress Bar

This code demonstrates a basic progress bar with a value of 50 out of 100. The `Progress` component is used to create a simple progress bar.

```jsx
import { Progress } from '@radix-ui/react-progress';

function BasicProgressBar() {
  return (
    <Progress value={50} max={100} />
  );
}
```

Custom Styled Progress Bar

This code demonstrates how to apply custom styles to the progress bar. The `className` prop is used to apply styles from an external CSS file.

```jsx
import { Progress } from '@radix-ui/react-progress';
import './customStyles.css';

function CustomStyledProgressBar() {
  return (
    <Progress className="custom-progress" value={75} max={100} />
  );
}
```

Indeterminate Progress Bar

This code demonstrates an indeterminate progress bar, which is useful for indicating ongoing processes where the duration is unknown.

```jsx
import { Progress } from '@radix-ui/react-progress';

function IndeterminateProgressBar() {
  return (
    <Progress indeterminate />
  );
}
```

Other packages similar to @radix-ui/react-progress

FAQs

Package last updated on 20 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts