mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 19:02:15 +00:00
ColorPicker added to storybook
This commit is contained in:
parent
1297569d85
commit
3212552865
4 changed files with 14 additions and 0 deletions
12
storybook/stories/ColorPicker/ColorPicker.js
Normal file
12
storybook/stories/ColorPicker/ColorPicker.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const { ColorPicker } = require('stremio/common');
|
||||
const styles = require('./styles');
|
||||
|
||||
storiesOf('ColorPicker', module).add('ColorPicker', () => {
|
||||
<ColorPicker
|
||||
className={styles['color-picker-container']}
|
||||
value={'#000000'}
|
||||
onChange={function() { alert('Demo item clicked') }}
|
||||
/>
|
||||
});
|
||||
1
storybook/stories/ColorPicker/index.js
Normal file
1
storybook/stories/ColorPicker/index.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
require('./ColorPicker');
|
||||
0
storybook/stories/ColorPicker/styles.less
Normal file
0
storybook/stories/ColorPicker/styles.less
Normal file
|
|
@ -1,2 +1,3 @@
|
|||
require('./Addon');
|
||||
require('./MetaItem');
|
||||
require('./ColorPicker');
|
||||
|
|
|
|||
Loading…
Reference in a new issue