From 445df342d111612ff83acffa420aaf563fa69af0 Mon Sep 17 00:00:00 2001 From: Jonathan Roitgrund Date: Thu, 7 Mar 2019 17:09:59 +0000 Subject: [PATCH] Add option to grow text area with input --- .../core/src/components/forms/text-inputs.md | 4 +- .../core/src/components/forms/textArea.tsx | 40 +++++++++++++++++-- packages/core/test/forms/textAreaTests.tsx | 39 ++++++++++++++++++ packages/core/test/index.ts | 1 + 4 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 packages/core/test/forms/textAreaTests.tsx diff --git a/packages/core/src/components/forms/text-inputs.md b/packages/core/src/components/forms/text-inputs.md index 3f3343dbd2..31ccd37c4b 100644 --- a/packages/core/src/components/forms/text-inputs.md +++ b/packages/core/src/components/forms/text-inputs.md @@ -17,7 +17,7 @@ field. @### Props -The `InputGroup` React component supports one non-interactive icon on the left +The `InputGroup` React component supports one non-interactive icon on the left side and one arbitrary element on the right side. Unlike the CSS approach, `InputGroup` supports _content of any length_ on the right side (not just icon buttons) because it is able to measure the content and ensure there is @@ -45,6 +45,7 @@ the parent input. Conversely, the [`InputGroup`](#core/components/text-inputs.input-group) React component _does_ support arbitrary content in its right element. + @css input-group @@ -63,6 +64,7 @@ Apply `Classes.INPUT` on a `