데이터 입력TextInput20 props
Text Input
Text Input는 짧은 한 줄 텍스트 값을 입력받는 폼 컨트롤입니다.
공식 문서 열기미리보기
Controlled input with clear button and status feedback.
Ready to search
Import
import {TextInput} from '@astryxdesign/core/TextInput';Astryx 문서 권장 방식대로 root barrel이 아니라 컴포넌트 subpath에서 가져옵니다.
사용 시점
Text Input는 짧은 한 줄 텍스트 값을 입력받는 폼 컨트롤입니다.
textinputtextfieldinputsearchclearableprefixsuffixadornment
중요 props
typetext | password | emailoptional
changeAction(value: string, e: ChangeEvent<HTMLInputElement>) => void | Promise<void>optional
sizesm | md | lgoptional
status{type: error | warning | success, message?: string}optional
테마 대상
astryx-text-input
사용 지침
- 권장TextInput의 목적이 드러나도록 레이블과 보조 설명을 함께 제공하세요.
- 권장상태 변화가 필요한 경우 사용자가 바로 이해할 수 있는 피드백을 연결하세요.
- 권장키보드와 보조 기술 사용자가 같은 흐름을 따라갈 수 있게 접근성 속성을 확인하세요.
- 권장화면 밀도와 주변 컴포넌트의 위계가 유지되도록 간격과 크기를 맞추세요.