Socket
Socket
Sign inDemoInstall

@radix-ui/react-progress

Package Overview
Dependencies
Maintainers
6
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-progress


Version published
Maintainers
6
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 19 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc