1 | import React, {Component} from 'react';
|
2 | import {storiesOf} from '@storybook/html';
|
3 |
|
4 | import reactDecorator from '../../.storybook/react-decorator';
|
5 |
|
6 | import Button from '../button/button';
|
7 |
|
8 | import Panel from './panel';
|
9 |
|
10 | storiesOf('Components|Panel', module).
|
11 | addParameters({
|
12 | notes: 'Displays a button panel.'
|
13 | }).
|
14 | addDecorator(reactDecorator()).
|
15 | add('basic', () => {
|
16 | class PanelDemo extends Component {
|
17 | render() {
|
18 | return (
|
19 | <Panel>
|
20 | <Button blue>{'Apply changes'}</Button>
|
21 | <Button>{'Cancel'}</Button>
|
22 | </Panel>
|
23 | );
|
24 | }
|
25 | }
|
26 |
|
27 | return <PanelDemo/>;
|
28 | });
|