Skip to content

Commit

Permalink
stories use CSF
Browse files Browse the repository at this point in the history
  • Loading branch information
beforan committed Feb 27, 2020
1 parent d8d3255 commit 63ed201
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Component.stories.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import React from "react";
import { storiesOf } from "@storybook/react";
import { text } from "@storybook/addon-knobs";
import { action } from "@storybook/addon-actions";
import Component from "./Component";

export default {
title: "Component",
component: Component
};

const actions = {
logResults: action("Results logged"),
setNextEnabled: action("Next button enabled")
};

storiesOf("Component", module).add("Default", () => (
export const Basic = () => (
<Component text={text("Text", "Hello")} {...actions} />
));
);

0 comments on commit 63ed201

Please sign in to comment.