Files
modernjs/chapter07/src/components/styledButton/styledButton.story.js
T
2018-07-09 08:46:51 -03:00

24 lines
628 B
JavaScript

/* @flow */
import React from "react";
import { storiesOf } from "@storybook/react";
import { action } from "@storybook/addon-actions";
import { StyledButton } from "./";
storiesOf("Styled-Components buttons", module)
.add("normal style", () => (
<StyledButton
normal
buttonText={"A normal Styled-Components button!"}
onSelect={action("click:normal")}
/>
))
.add("alert style", () => (
<StyledButton
normal={false}
buttonText={"An alert Styled-Components button!"}
onSelect={action("click:alert")}
/>
));