import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { Box } from 'rebass' import { Form } from 'informed' import { CryptoAmountInput, FiatAmountInput, Page, MainContent, Input, Label, LightningInvoiceInput, Select, TextArea, Button, Toggle, Range } from 'components/UI' const validate = value => { return !value || value.length < 5 ? 'Field must be at least five characters' : null } const selectItems = [ { label: '- Please select -', value: '' }, { label: 'Apple', value: 'apple' }, { value: 'pear' }, { value: 'orange' }, { value: 'grape' }, { value: 'banana' } ] storiesOf('Components.Form', module) .add('Input', () => (
)) .add('Label', () => (
)) .add('TextArea', () => (