/
Panel.story.js
46 lines (39 loc) · 1015 Bytes
/
Panel.story.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
36
37
38
39
40
41
42
43
44
45
46
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { Panel } from 'react-bootstrap'
storiesOf('Panel', module)
.add('default', () => (
<Panel>
Basic panel example
</Panel>
))
.add('with heading', () => (
<Panel header='Panel header'>
Panel content
</Panel>
))
.add('primary', () => (
<Panel header='Panel header' bsStyle='primary'>
Panel content
</Panel>
))
.add('success', () => (
<Panel header='Panel header' bsStyle='success'>
Panel content
</Panel>
))
.add('info', () => (
<Panel header='Panel header' bsStyle='info'>
Panel content
</Panel>
))
.add('warning', () => (
<Panel header='Panel header' bsStyle='warning'>
Panel content
</Panel>
))
.add('danger', () => (
<Panel header='Panel header' bsStyle='danger'>
Panel content
</Panel>
))