From 1994c98063c27a41797dec01f2ca9fcbe33ceab0 Mon Sep 17 00:00:00 2001 From: Israel Lavi Date: Mon, 21 May 2018 17:42:00 +0300 Subject: init commit onap ui Change-Id: I1dace78817dbba752c550c182dfea118b4a38646 Issue-ID: SDC-1350 Signed-off-by: Israel Lavi --- stories/react/Input.stories.js | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 stories/react/Input.stories.js (limited to 'stories/react/Input.stories.js') diff --git a/stories/react/Input.stories.js b/stories/react/Input.stories.js new file mode 100644 index 0000000..869bafa --- /dev/null +++ b/stories/react/Input.stories.js @@ -0,0 +1,51 @@ +import React from 'react'; +import { action } from '@storybook/addon-actions'; +import Examples from './utils/Examples.js'; + +import ReactInput from '../../src/react/Input.js'; + +import InputDefaultHtml from '../../components/input/input.html'; +import InputRequiredHtml from '../../components/input/input-required.html'; +import InputNumberHtml from '../../components/input/input-number.html'; +import InputViewOnlyHtml from '../../components/input/input-view-only.html'; +import InputDisabledHtml from '../../components/input/input-disabled.html'; +import InputPlaceholderHtml from '../../components/input/input-placeholder.html'; +import InputErrorHtml from '../../components/input/input-error.html'; + +let examples = { + 'Input Default': { + jsx: , + html: InputDefaultHtml + }, + 'Input Required': { + jsx: , + html: InputRequiredHtml + }, + 'Input Number': { + jsx: , + html: InputNumberHtml + }, + 'Input View Only': { + jsx: , + html: InputViewOnlyHtml + }, + 'Input Disabled': { + jsx: , + html: InputDisabledHtml + }, + 'Input Placeholder': { + jsx: , + html: InputPlaceholderHtml + }, + 'Input Error': { + jsx: , + html: InputErrorHtml + } + +} + +const Inputs = () => ( + +); + +export default Inputs; -- cgit 1.2.3-korg