Skip to content

[FEAT] 공통 input 컴포넌트 구현#25

Merged
jaeml06 merged 14 commits into
developfrom
feat/#24
Jan 11, 2026
Merged

[FEAT] 공통 input 컴포넌트 구현#25
jaeml06 merged 14 commits into
developfrom
feat/#24

Conversation

@jaeml06
Copy link
Copy Markdown
Contributor

@jaeml06 jaeml06 commented Jan 10, 2026

🚩 연관 이슈
closed #24

📝 작업 내용
Input 컴포넌트 고도화
Clear 버튼 기능: 입력 값이 있을 때 우측에 초기화(X) 버튼 노출 및 동작 구현
글자수 제한(MaxLength) 및 카운트: maxLength 설정 시 우측 하단에 현재/최대 글자수 표시 및 레이아웃 배치
한글(IME) 입력 개선: 한글 입력 시 maxLength를 일시적으로 초과하는 문제를 onChange 내 slice 처리로 해결
레이아웃 안정화: Clear 버튼 생성 시 패딩 변화로 인한 너비 흔들림 방지 (width: 100% 적용)

사용예시

// 기본 사용
<Input label="이름" placeholder="홍길동" />
// 글자수 제한 + Clear 버튼 + 에러 메시지
<Input 
  label="자기소개" 
  maxLength={20} 
  errorMessage="필수 입력 항목입니다."
  onClear={() => console.log('Clear')} 
/>
image

@jaeml06 jaeml06 added the feat 기능 개발 label Jan 10, 2026
@jaeml06 jaeml06 requested a review from yejinleee January 10, 2026 16:42
@jaeml06 jaeml06 self-assigned this Jan 10, 2026
Comment thread src/shared/ui/input/Input.stories.tsx Outdated
import Input from './Input';

const meta = {
title: 'Shared/Input',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얘는 /UI에 안들어가나요?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지금 확인해보시면 변경되어 있습니다. 제가 push를 않했었네요

Copy link
Copy Markdown
Contributor

@yejinleee yejinleee Jan 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😅 확인했습니다

@jaeml06 jaeml06 merged commit 1c9310c into develop Jan 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 공통 input 컴포넌트 구현

2 participants