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

Merge branch 'develop' into add-badges-component

This commit is contained in:
Igor Guastalla de Lima
2018-12-20 20:03:58 -02:00
23 changed files with 226 additions and 222 deletions

View File

@@ -8,8 +8,10 @@ stories.addDecorator(withKnobs);
stories.add('dialog', () => {
const open = boolean('open', true) ? 'open' : '';
const isRounded = boolean('is-rounded', false) ? 'is-rounded' : '';
const selectedClasses = [isRounded];
return `<dialog ${open}>
return `<dialog class="nes-dialog ${selectedClasses.join(' ')}" ${open}>
<p class="title">Dialog</p>
<p>Alert: this is a dialog.</p>
</div>`;