1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-09-02 10:32:41 +02:00

refactor(storybook): storybook enhancement and cleanup

refactored the storybook codebase for all components

re #381
This commit is contained in:
Kaylum Lally
2019-12-14 15:21:15 +00:00
parent 08cbd6e51e
commit 2e06165882
49 changed files with 643 additions and 404 deletions

View File

@@ -0,0 +1,20 @@
import { select } from '@storybook/addon-knobs';
import classNames from 'classnames';
import sharedOptions from '../_helpers/shared';
export default () => {
const inputOptions = select('Input Classes', {
default: '',
...sharedOptions,
}, '');
const inputClasses = classNames(
'nes-input',
inputOptions,
);
return `
<input type="text" id="name_field" class="${inputClasses}" placeholder="NES.css">
`;
};