From 36a8ded2bc5df544c0ffa84d3f53560c86556e2d Mon Sep 17 00:00:00 2001 From: Brooke Scarlett Yalof Date: Wed, 14 Feb 2024 13:57:24 -0500 Subject: [PATCH] LG-2342: Description props accept `React.ReactNode` instead of strings (#2219) * description prop upgrade * updates readmes --- .changeset/tricky-cars-cheat.md | 7 +++++++ packages/combobox/README.md | 2 +- packages/combobox/src/Combobox/Combobox.types.ts | 4 ++-- packages/select/README.md | 2 +- packages/select/src/Select/Select.types.ts | 9 ++++++++- packages/text-area/README.md | 2 +- packages/text-area/src/TextArea/TextArea.types.ts | 4 +++- 7 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .changeset/tricky-cars-cheat.md diff --git a/.changeset/tricky-cars-cheat.md b/.changeset/tricky-cars-cheat.md new file mode 100644 index 0000000000..a2d77bb085 --- /dev/null +++ b/.changeset/tricky-cars-cheat.md @@ -0,0 +1,7 @@ +--- +'@leafygreen-ui/text-area': minor +'@leafygreen-ui/combobox': minor +'@leafygreen-ui/select': minor +--- + +`description` prop can now be a `React.ReactNode` rather than a `string` diff --git a/packages/combobox/README.md b/packages/combobox/README.md index 6a42663363..b92cd4e159 100644 --- a/packages/combobox/README.md +++ b/packages/combobox/README.md @@ -87,7 +87,7 @@ import { Combobox, ComboboxOption } from '@leafygreen-ui/combobox'; | `overflow` | `'expand-y'`, `'expand-x'`, `'scroll-x'` | Defines the overflow behavior of a multiselect combobox. **expand-y**: Combobox has fixed width, and additional selections will cause the element to grow in the block direction. **expand-x**: Combobox has fixed height, and additional selections will cause the elemenet to grow in the inline direction. **scroll-x**: Combobox has fixed height and width, and additional selections will cause the element to be scrollable in the x (horizontal) direction. | `'expand-y'` | | `label` | `string` | An accessible label for the input, rendered in a `