Skip to content

Commit

Permalink
feat: add bottomAddon prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Nov 1, 2024
1 parent 73c2291 commit e270c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ui/Input/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as S from './style.css';
interface TextFieldProps<T> extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value'> {
className?: string;
topAddon?: ReactNode;
bottomAddon?: ReactNode;
labelText?: string;
descriptionText?: string;
required?: boolean;
Expand All @@ -19,6 +20,7 @@ function TextField<T extends string | number>(props: TextFieldProps<T>) {
const {
className,
topAddon,
bottomAddon,
labelText,
descriptionText,
required,
Expand All @@ -41,6 +43,7 @@ function TextField<T extends string | number>(props: TextFieldProps<T>) {
bottomAddon={
<FieldBox.BottomAddon
leftAddon={hasError() && errorMessage ? <FieldBox.ErrorMessage message={errorMessage} /> : null}
rightAddon={bottomAddon}
/>
}
className={className}
Expand Down

0 comments on commit e270c27

Please sign in to comment.