First release

This commit is contained in:
Owen Quinlan 2021-07-02 19:29:34 +10:00
commit fa6c85266e
2339 changed files with 761050 additions and 0 deletions

View file

@ -0,0 +1,8 @@
import { storiesOf } from '@storybook/html';
import { withKnobs } from '@storybook/addon-knobs';
import Textarea from './textarea.template';
storiesOf('Textareas', module)
.addDecorator(withKnobs)
.add('Textarea', () => Textarea());

View file

@ -0,0 +1,20 @@
import { select } from '@storybook/addon-knobs';
import classNames from 'classnames';
import sharedOptions from '../_helpers/shared';
export default () => {
const textareaOption = select('Textarea Classes', {
default: '',
...sharedOptions,
}, '');
const textareaClasses = classNames(
'nes-textarea',
textareaOption,
);
return `
<textarea id="textarea_field" class="${textareaClasses}" placeholder="NES.css"></textarea>
`;
};