JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q33981F
  • License MIT

Essence Steppers - Stepper component

Package Exports

  • essence-stepper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (essence-stepper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Essence Steppers - Stepper component

Options:

  • steps: default {} empty object, see the example bellow to customize
  • items: default {} empty object, see the example bellow to customize
  • editable: default true or false
  • currentStep: initial step 0
  • onContinue: default callback null
  • onBack: default callback null

How to use

import Stepper from 'essence-stepper';

const Editable = {
 'steps': [
   { 'title': (<Text>Select campaign settings</Text>) },
   { 'title': (<Text>Create an ad group</Text>), 'optional': (<Text>Optional</Text>) },
   { 'title': (<Text>Create an ad</Text>) }
 ],
 'items': [ 
   { 'item': (<Text className={'e-caption'}>Campaign settings</Text>) },
   { 'item': (<Text className={'e-caption'}>Ad group</Text>) },
   { 'item': (<Text className={'e-caption'}>Ad details</Text>) }
 ]
};

const NonEditable = {
 'steps': [
   { 'title': (<Text>Select campaign settings</Text>) },
   { 'title': (<Text>Create an ad group</Text>) },
   { 'title': (<Text>Create an ad</Text>) }
 ],
 'items': [ 
   { 'item': (<Text className={'e-caption'}>Campaign settings</Text>) },
   { 'item': (<Text className={'e-caption'}>Ad group</Text>) },
   { 'item': (<Text className={'e-caption'}>Ad details</Text>) }
 ]
};
<Stepper steps={Editable.steps} items={Editable.items} />

<Stepper editable={false} steps={NonEditable.steps} items={NonEditable.items}  onContinue={callbackOnContinue(currentStep)} onBack={callbackOnBack(currentStep)} />