1.11.1 • Published 2 years ago

@happyfresh/stepper v1.11.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Stepper

Stepper for Happyfresh components. Stepper consists of two type of stepper, which is vertical and horizontal (default) stepper. To use stepper user needs to insert props array of steps, and count of completed steps. In every step consist two different state, incomplete and complete.

Installation

yarn add @happyfresh/stepper

Usage

import { Stepper } from '@happyfresh/stepper';

const stepsMock = [
  {
    description: 'Order confirmed! - June 23, 6:12 PM',
    state: 'completed'
  },
  {
    description: 'Order prepared - Today, 12:08 PM',
    state: 'completed'
  },
  {
    description: 'Already picked up  - Today, 1:12 PM',
    state: 'completed'
  },
  {
    description: 'Delivering',
    state: 'incomplete'
  },
  {
    description: 'Order delivered',
    state: 'incompletes'
  },
];

export const StepperBasic = () => (
  <>
    <Stepper steps={stepsMock} vertical completed={3}/>
    <Stepper steps={stepsMock}/>
  </>
1.11.1

2 years ago

1.12.0

2 years ago

1.9.2

3 years ago

1.11.0

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.10.0

3 years ago

1.8.0

3 years ago

1.7.0

4 years ago

1.5.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.1.0

4 years ago