Sha256: 74b82481fe385e85e1573b346b2a96fd25322381ebab683a153a6ac4c7690ea2
Contents?: true
Size: 602 Bytes
Versions: 5
Compression:
Stored size: 602 Bytes
Contents
import React from "react" import Icon from "./Icon" import { text, boolean } from "@storybook/addon-knobs" export default function IconStory(stories) { stories.add("Icon", () => { let props = { className: text("className", ""), name: text("name", "battery-half"), label: text("label", "50%"), size: text("size", "lg"), spin: boolean("spin", false), onClick: () => { alert("Whaa? Why u click me?!") }, title: text("title", "Battery Percentage") } return ( <Icon {...props}/> ) } ) }
Version data entries
5 entries across 5 versions & 1 rubygems