fix(FE-51) adjust textarea component ui

This commit is contained in:
randy-ar
2025-10-13 13:09:53 +07:00
parent ce8471343c
commit 302da65c59
3 changed files with 4 additions and 6 deletions
+4 -4
View File
@@ -31,7 +31,7 @@ export interface TextAreaProps {
endAdornment?: ReactNode;
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
cols?: number;
rows?: number;
}
const TextArea = ({
@@ -52,7 +52,7 @@ const TextArea = ({
onBlur,
readOnly = false,
isLoading = false,
cols = 3
rows = 3
}: TextAreaProps) => {
return (
<div
@@ -87,7 +87,7 @@ const TextArea = ({
<textarea
className={cn(
'input h-12 px-4 py-2 text-base font-normal leading-6 w-full rounded-lg! outline-none! transition-all',
'input h-auto px-4 py-2 text-base font-normal leading-6 w-full rounded-lg! outline-none! transition-all',
{
'border-error': isError,
'border-success!': isValid,
@@ -98,7 +98,7 @@ const TextArea = ({
name={name}
placeholder={placeholder}
value={value}
cols={cols}
rows={rows}
onChange={onChange}
onBlur={onBlur}
disabled={disabled}