Socket
Socket
Sign inDemoInstall

@commercetools-uikit/progress-bar

Package Overview
Dependencies
85
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @commercetools-uikit/progress-bar

A progress bar component used to visualize the progression of an extended operation


Version published
Weekly downloads
4K
increased by116.26%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

ProgressBar

Description

A progress bar component used to visualize the progression of an extended operation

Installation

yarn add @commercetools-uikit/progress-bar
npm --save install @commercetools-uikit/progress-bar

Additionally install the peer dependencies (if not present)

yarn add react
npm --save install react

Usage

import ProgressBar from '@commercetools-uikit/progress-bar';

const Example = () => <ProgressBar label={`${50}% completed`} progress={50} />;

export default Example;

Properties

PropsTypeRequiredDefaultDescription
progressnumber0The percentage of the task completion to fill the bar.
labelunion
Possible values:
, string, ReactElement, (MessageDescriptor & { values?: Record<string, ReactNode> }), null
nullThe text to display alongside the bar.
labelPositionunion
Possible values:
'top' , 'bottom' , 'left' , 'right'
'top'Location of the text in relation to the bar.
labelWidthunion
Possible values:
, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto'
'scale'The scale of the width for the label, uses values available in the Constraints.Horizontal component.
isInvertedbooleanfalseSpecifies the use of light colors(default) or dark colors.
isAnimatedbooleantrueSpecifies whether the inner bar should have the styles animated.
heightunion
Possible values:
'10' , '20'
'20'The scale of the height for the bar, also affects the styles of the label.
barWidthunion
Possible values:
4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 'scale'
6The scale of the width for the label, uses values available in the Constraints.Horizontal component.

Keywords

FAQs

Last updated on 29 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc