Sha256: 1a49da734a382de7f3369c0e6dd076ef46170fed84252cc8b399eeb91cbf5f1b

Contents?: true

Size: 694 Bytes

Versions: 5

Compression:

Stored size: 694 Bytes

Contents

import React from "react"
import StepMeter from "./StepMeter"

import { object, select } from "@storybook/addon-knobs"

export default function StepMeterStory(stories) {
  stories.add("StepMeter",
    () => {
      let props = {
        type: select("Type", ["complex", "simple"], "complex"),
        steps: object(
          "steps",
          [
            { id: 1, name: 'Apply', state: 'done'},
            { id: 2, name: 'Screen', state: 'done'},
            { id: 3, name: 'Interview', state: 'started'},
            { id: 4, name: 'Offer', state: 'none'},
            { id: 5, name: 'Hired', state: 'none'},
          ]
        )
      }
      return <StepMeter {...props}/>
    }
  )
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-2.7.2 components/StepMeter/StepMeterStory.jsx
playbook_ui-2.7.1 components/StepMeter/StepMeterStory.jsx
playbook_ui-2.7.0 components/StepMeter/StepMeterStory.jsx
playbook_ui-2.6.0 components/StepMeter/StepMeterStory.jsx
playbook_ui-2.5.0 components/StepMeter/StepMeterStory.jsx