Sha256: f477fb618e6559f181d0dfe73f57346143a4214c312a8360d549c772d62f018d

Contents?: true

Size: 815 Bytes

Versions: 5

Compression:

Stored size: 815 Bytes

Contents

import React from "react"
import Milestones from "./Milestones"

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

export default function MilestonesStory(stories) {
  stories.add("Milestones",
    () => {
      let props = {
        className: text("className", ""),
        background: select("background", ["dark", "light"], "light"),
        steps: [
          {
            name: "First",
            status: select("1 Status", ["done", "started", "none"], "done")
          },
          {
            name: "Second",
            status: select("2 Status", ["done", "started", "none"], "started")
          },
          {
            name: "Third",
            status: select("3 Status", ["done", "started", "none"], "none")
          }
        ]
      }
      return <Milestones {...props}/>
    }
  )
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-2.7.2 components/Milestones/MilestonesStory.jsx
playbook_ui-2.7.1 components/Milestones/MilestonesStory.jsx
playbook_ui-2.7.0 components/Milestones/MilestonesStory.jsx
playbook_ui-2.6.0 components/Milestones/MilestonesStory.jsx
playbook_ui-2.5.0 components/Milestones/MilestonesStory.jsx