Sha256: 5cc0c410f2937a05e0bdf5a7f4cd23ac50a36d4cc60ec7553608e46e69350536

Contents?: true

Size: 503 Bytes

Versions: 5

Compression:

Stored size: 503 Bytes

Contents

import React from "react"

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

import Banner from "./Banner"

export default function BannerStory(stories) {
  const props = {
    position: select("position", ["top", "bottom"], "top"),
    show: boolean("show", 1),
    style: select("style", ["info", "success", "warning", "danger"], "success"),
  }
  stories.add("Banner", () => {
    return (
      <Banner
          {...props}
      >
        {`You are a success!`}
      </Banner>
    )
  })
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-2.7.2 components/Banner/BannerStory.jsx
playbook_ui-2.7.1 components/Banner/BannerStory.jsx
playbook_ui-2.7.0 components/Banner/BannerStory.jsx
playbook_ui-2.6.0 components/Banner/BannerStory.jsx
playbook_ui-2.5.0 components/Banner/BannerStory.jsx