mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
* storybook environment setup * customized loader * add basic example of BasicTable * add script to bootstrap storybook * import bootstrap css for storybook * update webpack.config for adding loader for font and css * add sass loader and allow to customize css for storybook * uncheck lint for react-bootstrap-table-example * package example has its own lint check * run yarn in each package when boostrapping lerna * add peerDependencies for package example
17 lines
536 B
JavaScript
17 lines
536 B
JavaScript
/* eslint import/no-unresolved: 0 */
|
|
import React from 'react';
|
|
import { storiesOf } from '@storybook/react';
|
|
import { linkTo } from '@storybook/addon-links';
|
|
|
|
import { Welcome } from '@storybook/react/demo';
|
|
import BasicTable from 'examples/basic/index.js';
|
|
|
|
// css style
|
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
import 'stories/stylesheet/storybook.scss';
|
|
|
|
storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button')} />);
|
|
|
|
storiesOf('Basic Table', module)
|
|
.add('default', () => <BasicTable />);
|