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;
     

    Keywords

    none

    Install

    npm i cf-component-progress

    DownloadsWeekly Downloads

    72

    Version

    8.0.0

    License

    BSD-3-Clause

    Unpacked Size

    26.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar