Components
Text Field
이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요.
개요
옵션 테이블
속성 | 값 | 기본값 |
---|---|---|
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 |
링크
React
Text Field 컴포넌트를 React로 사용하는 방법을 설명합니다. (Text Field)
React
Text Field 컴포넌트를 React로 사용하는 방법을 설명합니다. (Multiline Text Field)
스펙
base
상태 | 슬롯 | 속성 | 값 |
---|---|---|---|
enabled | label | color | |
fontWeight | |||
indicator | color | ||
fontWeight | |||
field | color | ||
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 | |
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 |