mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 14:52:13 +00:00
SharePrompt added to storybook
This commit is contained in:
parent
24603f02c5
commit
ba97580032
4 changed files with 20 additions and 0 deletions
14
storybook/stories/SharePrompt/SharePrompt.js
Normal file
14
storybook/stories/SharePrompt/SharePrompt.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const { action } = require('@storybook/addon-actions');
|
||||
const { SharePrompt } = require('stremio/common');
|
||||
const styles = require('./styles');
|
||||
|
||||
storiesOf('SharePrompt', module).add('SharePrompt', () => (
|
||||
<SharePrompt
|
||||
className={styles['share-prompt-container']}
|
||||
label={'Demo label'}
|
||||
url={'Demo url'}
|
||||
close={action('Demo item closed')}
|
||||
/>
|
||||
));
|
||||
1
storybook/stories/SharePrompt/index.js
Normal file
1
storybook/stories/SharePrompt/index.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
require('./SharePrompt');
|
||||
4
storybook/stories/SharePrompt/styles.less
Normal file
4
storybook/stories/SharePrompt/styles.less
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
.share-prompt-container {
|
||||
width: 24rem;
|
||||
margin: 1rem;
|
||||
}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
require('./Addon');
|
||||
require('./MetaItem');
|
||||
require('./ColorPicker');
|
||||
require('./SharePrompt');
|
||||
|
|
|
|||
Loading…
Reference in a new issue