1 | import * as React from 'react';
|
2 | import { storiesOf } from '@storybook/react';
|
3 | import styled from 'styled-components';
|
4 |
|
5 | import { Textarea, GlobalStyle } from '../src';
|
6 |
|
7 | const 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 |
|
15 | storiesOf('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 |