Skip to content

Commit

Permalink
✨ Textarea 컴포넌트 rows 속성 선택적으로 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
LEEJW1953 committed Nov 22, 2023
1 parent b981125 commit 4f66d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/frontend/src/components/commons/Input/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type TextareaProps = {
disabled?: boolean;
required?: boolean;
fullWidth?: boolean;
rows: number;
rows?: number;
};

export function Textarea({
Expand All @@ -21,7 +21,7 @@ export function Textarea({
maxLength,
required = false,
fullWidth = false,
rows,
rows = 2,
}: TextareaProps) {
const [textCount, setTextCount] = useState<number>(0);
const textRef = useRef<HTMLTextAreaElement | null>(null);
Expand Down

0 comments on commit 4f66d57

Please sign in to comment.