First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
23
node_modules/nes.css/story/icons/icons.template.js
generated
vendored
Normal file
23
node_modules/nes.css/story/icons/icons.template.js
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { radios, select } from '@storybook/addon-knobs';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import { Icons, Size } from '../_helpers/icons';
|
||||
|
||||
export default () => {
|
||||
const selectedIcon = select('class', {
|
||||
...Icons,
|
||||
}, 'twitter');
|
||||
|
||||
const iconSize = radios('Icon Size', {
|
||||
...Size,
|
||||
}, '');
|
||||
|
||||
const iconClasses = classNames(
|
||||
'nes-icon',
|
||||
selectedIcon,
|
||||
iconSize,
|
||||
);
|
||||
return `
|
||||
<i class="${iconClasses}"></i>
|
||||
`;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue