Skip to content

Commit

Permalink
✨ feat :: 입력 컴포넌트에 여러 상황 케이스 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
osohyun0224 committed Apr 27, 2024
1 parent 7ac08df commit 147f92d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/InputField/InputField.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ export const getVariantStyling = (variant: Required<InputFieldProps>['variant'])
text: css({
backgroundColor: 'transparent',
}),
focus: css({
backgroundColor: 'transparent',
}),
error: css({
backgroundColor: 'transparent',
}),
};

return style[variant];
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputField/InputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Label from '@components/TextLabel/TextLabel';

export interface InputFieldProps extends Omit<ComponentPropsWithRef<'input'>, 'size'> {
label?: string;
variant?: 'default' | 'text';
variant?: 'default' | 'text' | 'focus' | 'error';
size?: Extract<Size, 'small' | 'medium' | 'large'>;
isError?: boolean;
icon?: ReactElement;
Expand Down

0 comments on commit 147f92d

Please sign in to comment.