From cd50da3dbe8531bcb93ecfcf9b408dfafcb73555 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) --- .../src/components/Forms/Form.story.tsx | 6 +++ .../src/components/Forms/Input/Input.tsx | 47 +++++++++---------- .../components/Forms/TextArea/TextArea.tsx | 1 + 3 files changed, 30 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 926990719ea..9256108a5ca 100644 --- a/packages/grafana-ui/src/components/Forms/Form.story.tsx +++ b/packages/grafana-ui/src/components/Forms/Form.story.tsx @@ -16,6 +16,7 @@ import Forms from './index'; import mdx from './Form.mdx'; import { ValidateResult } from 'react-hook-form'; import { boolean } from '@storybook/addon-knobs'; +import { TextArea } from './TextArea/TextArea'; export default { title: 'Forms/Test forms', @@ -50,6 +51,7 @@ interface FormDTO { switch: boolean; radio: string; select: string; + text: string; nested: { path: string; }; @@ -88,6 +90,10 @@ const renderForm = (defaultValues?: Partial) => ( + +