Components
Text Field
사용자가 텍스트를 입력할 수 있는 컴포넌트입니다. 레이블, 도움말 텍스트, 에러 메시지 등을 포함하여 다양한 폼 입력 상황에 사용됩니다.
개요
옵션 테이블
| 속성 | 값 | 기본값 |
|---|---|---|
| size | medium, large, xlarge | medium |
| label | string | |
| indicator | string | |
| prefix text | string | |
| prefix icon | icon | |
| suffix text | string | |
| suffix icon | icon | |
| placeholder | string | |
| description | string | |
| error message | string | |
| character count | number | |
| max character count | number |
스펙
base
| 상태 | 슬롯 | 속성 | 값 |
|---|---|---|---|
| enabled | label | color | |
| fontWeight | |||
| indicator | color | ||
| fontWeight | |||
| field | strokeWidth | 1px | |
| strokeColor | |||
| value | color | ||
| placeholder | color | ||
| prefixText | color | ||
| prefixIcon | color | ||
| suffixText | color | ||
| suffixIcon | color | ||
| description | color | ||
| fontWeight | |||
| errorMessage | color | ||
| fontWeight | |||
| characterCount | color | ||
| fontWeight | |||
| maxCharacterCount | color | ||
| fontWeight | |||
| focused | field | strokeColor | |
| invalid | field | color | |
| strokeColor | |||
| invalid, focused | field | color | #00000000 |
| strokeColor | |||
| readonly | field | color | |
| disabled | field | color | |
| value | color | ||
| placeholder | color | ||
| prefixText | color | ||
| prefixIcon | color | ||
| suffixText | color | ||
| suffixIcon | color |
size=xlarge
| 상태 | 슬롯 | 속성 | 값 |
|---|---|---|---|
| enabled | header | paddingBottom | |
| gap | |||
| label | fontSize | ||
| lineHeight | |||
| indicator | fontSize | ||
| lineHeight | |||
| field | minHeight | 56px | |
| cornerRadius | |||
| gap | |||
| paddingX | |||
| paddingY | |||
| value | fontSize | ||
| lineHeight | |||
| prefixText | fontSize | ||
| lineHeight | |||
| prefixIcon | size | ||
| suffixText | fontSize | ||
| lineHeight | |||
| suffixIcon | size | ||
| footer | gap | ||
| paddingTop | |||
| minHeight | 20px | ||
| description | fontSize | ||
| lineHeight | |||
| errorMessage | fontSize | ||
| lineHeight | |||
| errorIcon | size | ||
| marginRight | |||
| characterCount | fontSize | ||
| lineHeight | |||
| maxCharacterCount | fontSize | ||
| lineHeight |
size=large
| 상태 | 슬롯 | 속성 | 값 |
|---|---|---|---|
| enabled | header | paddingBottom | |
| gap | |||
| label | fontSize | ||
| lineHeight | |||
| indicator | fontSize | ||
| lineHeight | |||
| field | minHeight | 52px | |
| cornerRadius | |||
| gap | |||
| paddingX | |||
| paddingY | |||
| value | fontSize | ||
| lineHeight | |||
| prefixText | fontSize | ||
| lineHeight | |||
| prefixIcon | size | ||
| suffixText | fontSize | ||
| lineHeight | |||
| suffixIcon | size | ||
| footer | gap | ||
| paddingTop | |||
| minHeight | 20px | ||
| description | fontSize | ||
| lineHeight | |||
| errorMessage | fontSize | ||
| lineHeight | |||
| errorIcon | size | ||
| marginRight | |||
| characterCount | fontSize | ||
| lineHeight | |||
| maxCharacterCount | fontSize | ||
| lineHeight |
size=medium
| 상태 | 슬롯 | 속성 | 값 |
|---|---|---|---|
| enabled | header | paddingBottom | |
| label | fontSize | ||
| lineHeight | |||
| indicator | fontSize | ||
| lineHeight | |||
| field | minHeight | 40px | |
| cornerRadius | |||
| gap | |||
| paddingX | |||
| paddingY | |||
| value | fontSize | ||
| lineHeight | |||
| prefixText | fontSize | ||
| lineHeight | |||
| prefixIcon | size | ||
| suffixText | fontSize | ||
| lineHeight | |||
| suffixIcon | size | ||
| footer | gap | ||
| paddingTop | |||
| minHeight | |||
| description | fontSize | ||
| lineHeight | |||
| errorMessage | fontSize | ||
| lineHeight | |||
| errorIcon | size | ||
| marginRight | |||
| characterCount | fontSize | ||
| lineHeight | |||
| maxCharacterCount | fontSize | ||
| lineHeight |
Last updated on