mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-31 01:39:50 +02:00
Add storybook as docs; add eslint as javascript styleguide with AirBnb Style.
This commit is contained in:
17
docs/index.stories.js
Normal file
17
docs/index.stories.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { storiesOf } from '@storybook/html';
|
||||
|
||||
import '../css/nes.css';
|
||||
|
||||
storiesOf('Containers', module)
|
||||
.add('default', () => `<div class="container with-title">
|
||||
<p class="title">Container</p>
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>`)
|
||||
.add('.is-center', () => `<div class="container with-title is-center">
|
||||
<p class="title">Container.is-center</p>
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>`)
|
||||
.add('.is-right', () => `<div class="container with-title is-right">
|
||||
<p class="title">Container.is-right</p>
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>`);
|
Reference in New Issue
Block a user