Sha256: 8ee7341d342398b60e45a08becadab0c19464f31bba3160a9a1b3fcdb099f0dd

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 Bytes

Contents

import React from "react"
import Grade from "./Grade"

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

export default function GradeStory(stories) {
  stories.add("Grade",
    () => {
      let props = {
        grade: number("grade", 8.5, { range: true, min: 0, max: 10, step: 0.5 }),
        starFullAt: number("starFullAt", 10, { range: true, min: 0, max: 10, step: 0.5 }),
        starEmptyAt: number("starEmptyAt", 0, { range: true, min: 0, max: 10, step: 0.5 }),
        label: text("label", "Grade")
      }
      return <Grade {...props}/>
    }
  )
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-2.7.2 components/Grade/GradeStory.jsx
playbook_ui-2.7.1 components/Grade/GradeStory.jsx
playbook_ui-2.7.0 components/Grade/GradeStory.jsx
playbook_ui-2.6.0 components/Grade/GradeStory.jsx
playbook_ui-2.5.0 components/Grade/GradeStory.jsx