diff --git a/packages/components/input/src/input.tsx b/packages/components/input/src/input.tsx index 91dadea0e9..e5306a25aa 100644 --- a/packages/components/input/src/input.tsx +++ b/packages/components/input/src/input.tsx @@ -53,7 +53,9 @@ const Input = forwardRef<"input", InputProps>((props, ref) => { {shouldShowError ? (
{errorMessage}
) : ( -
{description}
+
+ {description === " " ? : description} +
)} ); diff --git a/packages/components/input/stories/input.stories.tsx b/packages/components/input/stories/input.stories.tsx index d74a2523a8..43394b8554 100644 --- a/packages/components/input/stories/input.stories.tsx +++ b/packages/components/input/stories/input.stories.tsx @@ -91,6 +91,14 @@ const MirrorTemplate = (args) => ( ); +const WithDescriptionTemplate = (args) => ( +
+ + + +
+); + const FormTemplate = (args) => (