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:
@@ -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>`;
|
||||
|
Reference in New Issue
Block a user