From becdefa03794613c00c5f4b7e8535fe69fd279fb Mon Sep 17 00:00:00 2001 From: Igor Guastalla de Lima Date: Sun, 9 Dec 2018 13:04:53 -0200 Subject: [PATCH] feat(textarea): add textarea to storybook --- docs/textarea.stories.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/textarea.stories.js diff --git a/docs/textarea.stories.js b/docs/textarea.stories.js new file mode 100644 index 0000000..c5d16ea --- /dev/null +++ b/docs/textarea.stories.js @@ -0,0 +1,18 @@ +import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies +import { // eslint-disable-line import/no-extraneous-dependencies + withKnobs, radios, +} from '@storybook/addon-knobs'; + +const stories = storiesOf('Textareas', module); +stories.addDecorator(withKnobs); + +stories.add('textarea', () => { + const selectedClass = radios('class', { + default: '', + 'is-success': 'is-success', + 'is-warning': 'is-warning', + 'is-error': 'is-error', + }, ''); + + return `