First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
8
node_modules/nes.css/story/text/text.stories.js
generated
vendored
Normal file
8
node_modules/nes.css/story/text/text.stories.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { storiesOf } from '@storybook/html';
|
||||
import { withKnobs } from '@storybook/addon-knobs';
|
||||
|
||||
import Text from './text.template';
|
||||
|
||||
storiesOf('Text', module)
|
||||
.addDecorator(withKnobs)
|
||||
.add('Text', () => Text());
|
22
node_modules/nes.css/story/text/text.template.js
generated
vendored
Normal file
22
node_modules/nes.css/story/text/text.template.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { select } from '@storybook/addon-knobs';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import sharedOptions from '../_helpers/shared';
|
||||
|
||||
export default () => {
|
||||
const textOptions = select('Radio Classes', {
|
||||
default: '',
|
||||
'is-primary': 'is-primary',
|
||||
...sharedOptions,
|
||||
'is-disabled': 'is-disabled',
|
||||
}, '');
|
||||
|
||||
const textClasses = classNames(
|
||||
'nes-text',
|
||||
textOptions,
|
||||
);
|
||||
|
||||
return `
|
||||
<span class="nes-text ${textClasses}">NES.css</span>
|
||||
`;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue