This package has been deprecated

Author message:

This package has been deprecated. Please find this package under its new name @cloudflare/component-progress.

cf-component-progress

8.0.0 • Public • Published

cf-component-progress

Cloudflare Progress Component

Installation

Installation with yarn is recommended

 
$ yarn add cf-component-progress
 

Usage

import React from 'react';
import { Progress } from 'cf-component-progress';
 
class ProgressComponent extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeStep: 'foo'
    };
  }
 
  handleStepChange(step) {
    this.setState({
      activeStep: step
    });
  }
 
  render() {
    return (
      <Progress
        active={this.state.activeStep}
        onChange={this.handleStepChange.bind(this)}
        steps={[
          { id: 'foo', label: 'Foo', disabled: false },
          { id: 'bar', label: 'Bar', disabled: false },
          { id: 'baz', label: 'Baz', disabled: true }
        ]}
      />
    );
  }
}
 
export default ProgressComponent;
 

Readme

Keywords

none

Package Sidebar

Install

npm i cf-component-progress

Weekly Downloads

3

Version

8.0.0

License

BSD-3-Clause

Unpacked Size

26.1 kB

Total Files

9

Last publish

Collaborators

  • lerwincf
  • lbarthonet
  • cf-media-manager
  • jacobbednarz
  • celso
  • cf-radar
  • dash_service_account
  • g4brym
  • snigdha34
  • wrangler-publisher
  • marksteyn
  • chiminator
  • sgoodhew_cf
  • terinjokes
  • third774
  • jsteinberger
  • jasnell
  • asapzacy
  • pcostanzo
  • gregbrimble
  • geelen
  • rexscaria
  • dcruz_cf
  • xuranwang
  • jculvey
  • sejoker
  • vasturiano
  • cf-ci-write
  • segments-write
  • thibmeu
  • xortive
  • gurjinder
  • cf-ci2
  • lvalenta
  • worenga