Sha256: e33620c327770e8ef77d13923b448cd2df97b447ea5429bff45bdf29cfd64175

Contents?: true

Size: 529 Bytes

Versions: 5

Compression:

Stored size: 529 Bytes

Contents

import React from "react"
import { text, select} from "@storybook/addon-knobs"
import Button from "../Button/Button"
import classnames from 'classnames'

export default function CappingStory(stories) {
  stories.add("Capping",
    () => {
      let props = {
        className: text("className", "btn-primary"),
        cap: select("cap",["left", "right", "top", "bottom","none"],"left"),
      }

      const cap = `cap-${props.cap}`

      return <Button {...props} className={classnames(cap,props.className)} />


    }
  )
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-2.7.2 components/Capping/CappingStory.jsx
playbook_ui-2.7.1 components/Capping/CappingStory.jsx
playbook_ui-2.7.0 components/Capping/CappingStory.jsx
playbook_ui-2.6.0 components/Capping/CappingStory.jsx
playbook_ui-2.5.0 components/Capping/CappingStory.jsx