import * as React from "react"; import { action } from "@storybook/addon-actions"; import { withKnobs, text, boolean, select } from "@storybook/addon-knobs"; import StyleBuilder from "./StyleBuilder"; export default { title: "Modules|Properties/Individual Properties/Style Builder (Adv)", component: StyleBuilder, excludeStories: /.*Data$/, }; export const Default: any = () => { const [style, setStyle] = React.useState({ margin: 15, padding: 20, width: 300, height: 200, background: "#CCFFCC", border: "5px solid green", }); const updateStyle = (property) => { setStyle({ ...style, ...property }); }; return ( <>