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

react-cloud-progress-bar

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cloud-progress-bar

progress bar for react

1.0.3
latest
Source
npm
Version published
Maintainers
1
Created
Source
  • react-cloud-progress-bar

    Simple React component for a progress bar.

    Install

    npm install react-cloud-progress-bar --save
    

    Example

    import ProgressBar from 'react-cloud-progress-bar';
    
    <ProgressBar 
      pFunctions={
        [ 
          { func:function1, paras:[para1] },
          { func:function2, paras:[para1, para2] },
          { func:function3, paras:[para1, para2, para3] }
        ]
      }
      color={'green'}
      duration={'5'}
    />
    
    

    Documentation - props

    Always required

    props:pFunctions

    A Array contain several functions and function's parameters, functions will be run when progress bar run out.

    [ 
      { func:function1, paras:[para1] },
      { func:function2, paras:[para1, para2] },
      { func:function3, paras:[para1, para2, para3] }
    ]
    

    Optional

    color: string

    default:'#0085ff'

    Set the progress bar color.

    height: string

    default:'2px'

    Set the progress bar height.

    duration: string

    default: '10'

    Set the progress bar duration.

    Changelog

    • 1.0.3

Keywords

react

FAQs

Package last updated on 27 Nov 2017

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