1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-28 16:30:09 +02:00

full dialog build + script fix

This commit is contained in:
soph-iest
2018-12-11 11:08:46 -05:00
parent ac13679413
commit 2ff76ad8c6
4 changed files with 71 additions and 2 deletions

16
docs/dialogs.stories.js Normal file
View File

@@ -0,0 +1,16 @@
import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
import { // eslint-disable-line import/no-extraneous-dependencies
withKnobs, boolean,
} from '@storybook/addon-knobs';
const stories = storiesOf('Dialogs', module);
stories.addDecorator(withKnobs);
stories.add('dialog', () => {
const open = boolean('open', true) ? 'open' : '';
return `<dialog ${open}>
<p class="title">Dialog</p>
<p>Alert: this is a dialog.</p>
</div>`;
});