Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
feat: add unit prop (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMaliszewski authored Oct 4, 2022
1 parent 043a120 commit 6983f2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/TextBoxField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ type TextBoxFieldProps<T = TextBoxValue, K = string> = BaseFieldProps<T, K> &
| 'type'
| 'value'
| 'noTopLabel'
| 'unit'
| 'unitAlignment'
>
> & {
name: string
Expand Down Expand Up @@ -99,6 +101,8 @@ export const TextBoxField = forwardRef(
rows,
subscription,
type,
unit,
unitAlignment,
validate,
validateFields,
value,
Expand Down Expand Up @@ -196,6 +200,8 @@ export const TextBoxField = forwardRef(
type={input.type}
value={input.value}
noTopLabel={noTopLabel}
unit={unit}
unitAlignment={unitAlignment}
/>
)
},
Expand Down

0 comments on commit 6983f2d

Please sign in to comment.