UNPKG

591 BTypeScriptView Raw
1import * as React from 'react';
2import { storiesOf } from '@storybook/react';
3import styled from 'styled-components';
4
5import { Textarea, GlobalStyle } from '../src';
6
7const Wrapper = styled.div`
8 margin: 20px;
9 padding: 40px 10px ;
10 background-color: white;
11 border: #ebebeb 1px solid;
12 max-width: 300px;
13`;
14
15storiesOf('Textarea', module)
16 .add('Default', () => (
17 <React.Fragment>
18 <GlobalStyle />
19 <Wrapper>
20 <Textarea
21 type='text'
22 placeholder='Placeholder'
23 onChange={(e) => e}
24 />
25 </Wrapper>
26 </React.Fragment>
27 ));
\No newline at end of file