import React from "react"; import Flex from "../components/layout/Flex"; import { UseState } from "./helpers"; import Fill from "./Fill"; import Wrap from "./Wrap"; import GridCol from "../components/layout/GridCol"; import Button from "../components/parts/Button"; import Knobs from "./Knobs"; export default { title: "Flex" }; export const Default = () => ( ( )} /> ); export const Styles = () => ( ( )} /> ); export const Stretch = () => ( ( STRETCH )} /> ); export const GroupStretch = () => ( ( )} /> ); export const ShrinkFlexFlex = () => ( ( SHRINK FLEX FLEX )} /> ); export const DirectionHorizontal = () => ( ( )} /> ); export const Direction_Vertical = () => ( ( )} /> ); export const GapAndPad = () => ( ( setSettings({ gap: value, pad: settings.pad }) }, { name: 'Small', value: 'small', setKnob: (value) => setSettings({ gap:value, pad: settings.pad }) }, { name: 'Medium', value: 'medium', setKnob: (value) => setSettings({ gap: value, pad: settings.pad }) }, { name: 'Large', value: 'large', setKnob: (value) => setSettings({ gap: value, pad: settings.pad }) } ]}/> setSettings({ gap: settings.gap, pad: value }) }, { name: 'Small', value: 'small', setKnob: (value) => setSettings({ gap: settings.gap, pad: value }) }, { name: 'Medium', value: 'medium', setKnob: (value) => setSettings({ gap: settings.gap, pad: value }) }, { name: 'Large', value: 'large', setKnob: (value) => setSettings({ gap: settings.gap, pad: value }) } ]}/> )} /> );