From 6983f2d361446cee1c849519e14b3af8593070e2 Mon Sep 17 00:00:00 2001 From: Dorian Maliszewski Date: Tue, 4 Oct 2022 11:08:36 +0200 Subject: [PATCH] feat: add unit prop (#522) --- src/components/TextBoxField/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/TextBoxField/index.tsx b/src/components/TextBoxField/index.tsx index 7b9cab62..4704a18e 100644 --- a/src/components/TextBoxField/index.tsx +++ b/src/components/TextBoxField/index.tsx @@ -42,6 +42,8 @@ type TextBoxFieldProps = BaseFieldProps & | 'type' | 'value' | 'noTopLabel' + | 'unit' + | 'unitAlignment' > > & { name: string @@ -99,6 +101,8 @@ export const TextBoxField = forwardRef( rows, subscription, type, + unit, + unitAlignment, validate, validateFields, value, @@ -196,6 +200,8 @@ export const TextBoxField = forwardRef( type={input.type} value={input.value} noTopLabel={noTopLabel} + unit={unit} + unitAlignment={unitAlignment} /> ) },