Sha256: a5cf4417bb0afa746a6670fa89844fa8594c5c67cafb32bf5a47d810d57aa457

Contents?: true

Size: 742 Bytes

Versions: 5

Compression:

Stored size: 742 Bytes

Contents

import React from "react"
import Text from "./Text"

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

export default function TextStory(stories) {
  stories.add("Text",
    () => {
      let props = {
        className: text("className", ""),
        color: select("color", ["sky-lighter", "sky-light", "sky", "sky-dark", "ink-lightest", "ink-lighter", "ink-light", "ink", "ink-dark"], "ink"),
        size: select("size", ["base", "large", "larger", "largest", "small", "smaller", "smallest"], "base"),
        bold: boolean("bold", false),
        italic: boolean("italic", false),
      }
      return (
        <Text {...props}>
          {`She stared through the window at the stars.`}
        </Text>
      )
    }
  )
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-2.7.2 components/Text/TextStory.jsx
playbook_ui-2.7.1 components/Text/TextStory.jsx
playbook_ui-2.7.0 components/Text/TextStory.jsx
playbook_ui-2.6.0 components/Text/TextStory.jsx
playbook_ui-2.5.0 components/Text/TextStory.jsx