First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
33
node_modules/nes.css/story/icons/reactions.template.js
generated
vendored
Normal file
33
node_modules/nes.css/story/icons/reactions.template.js
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
import { select } from '@storybook/addon-knobs';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import { Reactions } from '../_helpers/icons';
|
||||
|
||||
export default () => {
|
||||
const reactionIcon = select('Reaction Icon', {
|
||||
...Reactions,
|
||||
}, 'heart');
|
||||
|
||||
const reactionSize = select('Size Class', {
|
||||
'is-small': 'is-small',
|
||||
'is-medium': 'is-medium',
|
||||
'is-large': 'is-large',
|
||||
}, 'is-large');
|
||||
|
||||
const reactionFill = select('Fill Class', {
|
||||
default: '',
|
||||
'is-half': 'is-half',
|
||||
'is-transparent': 'is-transparent',
|
||||
'is-empty': 'is-empty',
|
||||
});
|
||||
|
||||
const reactionClasses = classNames(
|
||||
'nes-icon',
|
||||
reactionIcon,
|
||||
reactionSize,
|
||||
reactionFill,
|
||||
);
|
||||
return `
|
||||
<i class="${reactionClasses}"></i>
|
||||
`;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue