/
index.js
35 lines (29 loc) · 1.31 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from 'react';
import { select } from '@storybook/addon-knobs';
import arrToObjOptions from '../../../components/utils/arrToObjOptions';
import readme from './README.md';
const optionsNoDefault = arrToObjOptions([
'-ellipsis',
'-ellipsis--sm',
'-ellipsis--md',
'-ellipsis--lg',
'-ellipsis--xl'
]);
const options = { ...optionsNoDefault, None: '' };
const divStyle = {
width: '100%',
height: '100px'
};
const component = () => (
<div style={divStyle} className={select('Options', options, '-ellipsis')}>
A bunch of text A bunch of text A bunch of text A bunch of text A bunch of text A bunch of
text A bunch of text A bunch of text A bunch of text A bunch of text A bunch of text A bunch
of text A bunch of text A bunch of text A bunch of text A bunch of text A bunch of text A
bunch of text A bunch of text A bunch of text A bunch of text A bunch of text A bunch of
text A bunch of text A bunch of text A bunch of text A bunch of text A bunch of text A bunch
of text A bunch of text A bunch of text A bunch of text A bunch of text A bunch of text A
bunch of text A bunch of text A bunch of text A bunch of text A bunch of text A bunch of
text A bunch of text A bunch of text
</div>
);
export default [readme, component];