1
0
Fork 0

:consruction: Progress on pattern option and draft setting components

This commit is contained in:
Joost De Cock 2019-04-22 18:00:26 +02:00
parent fa43bf1d0c
commit 3ca3742953
38 changed files with 790 additions and 153 deletions

View file

@ -0,0 +1,20 @@
import React from "react";
import { storiesOf } from "@storybook/react";
import Paperless from ".";
const props = {
triggerAction: (type, data) =>
console.log(`Action of type ${type} triggered, data passed is`, data),
updateValue: (name, value) =>
console.log(`Updated setting ${name}, value is now: ${value}`),
name: "paperless",
dflt: false,
title: "Paperless title",
desc:
"This is the paperless description. I'm wrapped in a p tag. This component only sets the CSS class on a non-default value. It's up to you to supply the CSS to style it.",
labels: ["No", "Yes"]
};
storiesOf("DraftSettingPaperless", module).add("Basic", () => (
<Paperless {...props} />
));