diff --git a/src/components/banner/banner.stories.js b/src/components/banner/banner.stories.js
index 23ec1f0..babaeb5 100644
--- a/src/components/banner/banner.stories.js
+++ b/src/components/banner/banner.stories.js
@@ -1,26 +1,23 @@
import React from "react";
import { Banner } from "./banner";
+import { withKnobs, select } from "@storybook/addon-knobs";
-export default { title: "Banner" };
-export const defaultColor = () => (
-
-);
+export default {
+ title: "Banner",
+ decorators: [withKnobs]
+};
+
+const colorOptions = {
+ Default: null,
+ Yellow: "yellow",
+ Green: "green"
+};
-export const green = () => (
-
-);
-export const yellow = () => (
+export const banner = () => (
diff --git a/src/components/button/button.stories.js b/src/components/button/button.stories.js
index 0560a84..2306d6e 100644
--- a/src/components/button/button.stories.js
+++ b/src/components/button/button.stories.js
@@ -1,56 +1,31 @@
import React from "react";
import { Button } from "./button";
+import { withKnobs, text, boolean, select } from "@storybook/addon-knobs";
-export default { title: "Button" };
+export default {
+ title: "Button",
+ decorators: [withKnobs]
+};
function sayMyName() {
alert("Hello Friend");
}
-export const primary = () => {
- return (
-
- );
-};
-
-export const inverted = () => {
- return (
-
- );
-};
-
-export const disabled = () => {
- return (
-
- );
-};
-
-export const disabledAndInverted = () => {
- return (
-
- );
-};
-
-export const danger = () => {
- return (
-
- );
-};
+const colorOptions = [
+ "primary",
+ "danger",
+ "warning"
+];
-export const warning = () => {
+export const button = () => {
return (
-