Sha256: 63ae0b222e054c897f7dda50013da6c8aaf45abf527d8ad56c24810b79657943

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

import React from "react"
import Avatar from "./Avatar"

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

export default function AvatarStory(stories) {
  stories.add("Avatar",
    () => {
      let props = {
        disableLink: boolean("disableLink", false),
        showPopover: boolean("showPopover", true),
        size: select("size", ["smaller", "small", "base", "large", "larger"], "base"),
        thumb: text("url", "https://i.giphy.com/l46CjoMYO5n2hQnWE.gif"),
        url: text("url", "https://i.giphy.com/l46CjoMYO5n2hQnWE.gif"),
      }
      return <Avatar {...props}/>
    }
  )
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-2.7.2 components/Avatar/AvatarStory.jsx
playbook_ui-2.7.1 components/Avatar/AvatarStory.jsx
playbook_ui-2.7.0 components/Avatar/AvatarStory.jsx
playbook_ui-2.6.0 components/Avatar/AvatarStory.jsx
playbook_ui-2.5.0 components/Avatar/AvatarStory.jsx