1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-09-09 22:00:53 +02:00
Files
nes.css/story/balloons/balloons.template.js
Kaylum Lally 2e06165882 refactor(storybook): storybook enhancement and cleanup
refactored the storybook codebase for all components

re #381
2019-12-14 15:21:15 +00:00

26 lines
517 B
JavaScript

import { select, boolean } from '@storybook/addon-knobs';
import classNames from 'classnames';
export default () => {
const isDark = boolean('is-dark', false);
const balloonDirection = select('Direction', {
default: '',
'from-left': 'from-left',
'from-right': 'from-right',
}, '');
const balloonClasses = classNames(
'nes-balloon',
balloonDirection,
{
'is-dark': isDark,
},
);
return `
<div class="${balloonClasses}">
<p>Hello NES.css</p>
</div>
`;
};