From dd10f40d7e9ad482a4a4e2f9a0acde0c4dbbe6ee Mon Sep 17 00:00:00 2001 From: Enguerran Weiss Date: Fri, 27 Jan 2023 08:17:31 +0100 Subject: [PATCH 1/2] add hideLabel attribute, removed aria-labelledby --- src/Input.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Input.tsx b/src/Input.tsx index 72b3628c7..ea9abeae7 100644 --- a/src/Input.tsx +++ b/src/Input.tsx @@ -11,6 +11,7 @@ export type InputProps = { className?: string; label: ReactNode; hintText?: ReactNode; + hideLabel?: boolean; /** default: false */ disabled?: boolean; iconId?: FrIconClassName | RiIconClassName; @@ -58,6 +59,7 @@ export const Input = memo( className, label, hintText, + hideLabel, disabled = false, iconId: iconId_props, classes = {}, @@ -109,9 +111,8 @@ export const Input = memo( {...rest} >