From e7a772df7098bb9d4ab1dc59670ee54ea6422c3a Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Tue, 28 Jan 2020 17:29:45 +0100 Subject: [PATCH] ADD support for className prop on Form.Field --- lib/components/src/form/field/field.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/src/form/field/field.tsx b/lib/components/src/form/field/field.tsx index 4a009c83c1ab..10cf3507a93a 100644 --- a/lib/components/src/form/field/field.tsx +++ b/lib/components/src/form/field/field.tsx @@ -26,8 +26,8 @@ export interface FieldProps { label?: ReactNode; } -export const Field: FunctionComponent = ({ label, children }) => ( - +export const Field: FunctionComponent = ({ label, children, ...props }) => ( + {label ? (