TLUiInputProps
See source codeTable of contents
interface TLUiInputProps {}Properties
"aria-label"
optional
'aria-label'?: string"data-testid"
optional
'data-testid'?: stringautoFocus
optional
autoFocus?: booleanautoSelect
optional
autoSelect?: booleanchildren
optional
children?: React.ReactNodeclassName
optional
className?: stringdefaultValue
optional
defaultValue?: stringdisabled
optional
disabled?: booleanicon
optional
icon?: Exclude<string, TLUiIconType> | TLUiIconTypeiconLabel
optional
iconLabel?: Exclude<string, TLUiTranslationKey> | TLUiTranslationKeyiconLeft
optional
iconLeft?: Exclude<string, TLUiIconType> | TLUiIconTypelabel
optional
label?: Exclude<string, TLUiTranslationKey> | TLUiTranslationKeyplaceholder
optional
placeholder?: stringshouldManuallyMaintainScrollPositionWhenFocused
optional
Usually on iOS when you focus an input, the browser will adjust the viewport to bring the input into view. Sometimes this doesn't work properly though - for example, if the input is newly created, iOS seems to have a hard time adjusting the viewport for it. This prop allows you to opt-in to some extra code to manually bring the input into view when the visual viewport of the browser changes, but we don't want to use it everywhere because generally the native behavior looks nicer in scenarios where it's sufficient.
shouldManuallyMaintainScrollPositionWhenFocused?: booleanvalue
optional
value?: stringMethods
onBlur
optional
Parameters
| Name | Description |
|---|---|
| |
Returns
voidonCancel
optional
Parameters
| Name | Description |
|---|---|
| |
Returns
voidonComplete
optional
Parameters
| Name | Description |
|---|---|
| |
Returns
voidonFocus
optional
onValueChange
optional
Parameters
| Name | Description |
|---|---|
| |
Returns
voidPrev
TLUiImageToolbarPropsNext
TLUiKbdProps