From b7299b5639f40efb70ad900fa1298f3608a0c697 Mon Sep 17 00:00:00 2001 From: ccedrone <77400920+ccedrone@users.noreply.github.com> Date: Wed, 29 Nov 2023 11:31:02 -0500 Subject: [PATCH] Feat - Native Select / Select - Supporting additional content (#1159) --- .changeset/feat-selectChildren.md | 5 +++++ .../src/components/NativeSelect/NativeSelect.tsx | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .changeset/feat-selectChildren.md diff --git a/.changeset/feat-selectChildren.md b/.changeset/feat-selectChildren.md new file mode 100644 index 0000000000..946b064ecd --- /dev/null +++ b/.changeset/feat-selectChildren.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': minor +--- + +feat(Select/NativeSelect): New `additionalContent` prop to provide the ability to add extra content inline with the label similar to the Input component. diff --git a/packages/react-magma-dom/src/components/NativeSelect/NativeSelect.tsx b/packages/react-magma-dom/src/components/NativeSelect/NativeSelect.tsx index 38db83772d..9e800422dc 100644 --- a/packages/react-magma-dom/src/components/NativeSelect/NativeSelect.tsx +++ b/packages/react-magma-dom/src/components/NativeSelect/NativeSelect.tsx @@ -179,16 +179,15 @@ export const NativeSelect = React.forwardRef( disabled={disabled} hasError={!!errorMessage} isInverse={isInverse} - theme={theme} + helperMessage={helperMessage} + messageStyle={messageStyle} + ref={ref} > - {children}