Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@automattic/calypso-ui

Package Overview
Dependencies
Maintainers
21
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automattic/calypso-ui

Calypso UI Components

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
21
Created
Source

Progress Bar

This component is used to display a single bar in a background color, and another bar on top of that filled, in a different color, with a % of the size of the background. Once this component is mounted, it will always progress forward, never backward: if value property is first 20 and later 15, the bar will still reflect the last maximum value, 20.

How to use:
import ProgressBar from 'components/progress-bar';

render() {
	return <ProgressBar
		value={ amount }
		total={ total }
		color={ color }
		title={ title }
	/>;
}
Props
  • value: a number representing the amount over the total to be represented in the bar (required).
  • total: a number representing the value corresponding to the 100% of the bar (optional, default == 100).
  • color: a string of a css color (optional).
  • title: a string for the title attribute (optional).
  • compact: If true, displays as a compact progress bar (optional).
  • className: You can add classes to either (optional).
  • isPulsing: If true, will add a barber pole animation to the value part of the bar (optional).

FAQs

Package last updated on 19 Jun 2019

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