From 9d605bdd040e59ec23711771c9ab8ff54672f0b3 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Tue, 17 Mar 2020 10:15:07 +0200 Subject: [PATCH] Grafana-UI: Add invalid state to Forms.Textarea (#22775) (cherry picked from commit cd50da3dbe8531bcb93ecfcf9b408dfafcb73555) --- .../src/components/Forms/Form.story.tsx | 7 +++ .../src/components/Forms/Input/Input.tsx | 47 +++++++++---------- .../components/Forms/TextArea/TextArea.tsx | 1 + 3 files changed, 31 insertions(+), 24 deletions(-) diff --git a/packages/grafana-ui/src/components/Forms/Form.story.tsx b/packages/grafana-ui/src/components/Forms/Form.story.tsx index 889488d1928..5c2fd9aa23f 100644 --- a/packages/grafana-ui/src/components/Forms/Form.story.tsx +++ b/packages/grafana-ui/src/components/Forms/Form.story.tsx @@ -14,6 +14,8 @@ import { RadioButtonGroup } from './RadioButtonGroup/RadioButtonGroup'; import { Select } from './Select/Select'; import Forms from './index'; import mdx from './Form.mdx'; +import { boolean } from '@storybook/addon-knobs'; +import { TextArea } from './TextArea/TextArea'; export default { title: 'Forms/Test forms', @@ -48,6 +50,7 @@ interface FormDTO { switch: boolean; radio: string; select: string; + text: string; nested: { path: string; }; @@ -86,6 +89,10 @@ const renderForm = (defaultValues?: Partial) => ( + +