predix-ui
Version:
px-* web components as React styled components
49 lines (46 loc) • 1.09 kB
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs } from '@storybook/addon-knobs';
import ContextBrowser from './';
const items = [{
label: 'Home',
id: 'home'
}, {
label: 'Alerts',
id: 'alerts',
info: 'This is a list of alerts',
children: [{
label: 'Alert #1',
id: 'al1',
info: 'Oh no! Your turbine has stopped spinning'
}, {
label: 'Alert #2',
id: 'al2',
info: 'Looks like something is not working'
}, {
label: 'Alert #3',
id: 'al3',
info: 'I am a helpful alert message'
}, {
label: 'Alert #4',
id: 'al4',
info: 'Danger: Something is not right.'
}]
}, {
label: 'Assets',
id: 'assets',
children: [{
label: 'Asset #1',
id: 'a1',
info: 'Here is some information about this asset'
}, {
label: 'Asset #2',
id: 'a2',
info: 'This is a different asset. Here is more information about this asset.'
}]
}];
storiesOf('Components / Context Browser', module)
.addDecorator(withKnobs)
.add('default', () => (
<ContextBrowser items={items} />
));