InputProps
Public Interface
Table of Contents
Signature
interface InputProps {}
Properties
autofocus
Public PropertySignature
Signature
autofocus?: boolean
autoselect
Public PropertySignature
Signature
autoselect?: boolean
children
Public PropertySignature
Signature
children?: any
className
Public PropertySignature
Signature
className?: string
defaultValue
Public PropertySignature
Signature
defaultValue?: string
disabled
Public PropertySignature
Signature
disabled?: boolean
icon
Public PropertySignature
Signature
icon?: TLUiIconType
References
iconLeft
Public PropertySignature
Signature
iconLeft?: TLUiIconType
References
label
Public PropertySignature
Signature
label?: TLTranslationKey
References
onCancel
Public PropertySignature
Signature
onCancel?: (value: string) => void
onComplete
Public PropertySignature
Signature
onComplete?: (value: string) => void
onValueChange
Public PropertySignature
Signature
onValueChange?: (value: string) => void
placeholder
Public PropertySignature
Signature
placeholder?: string
shouldManuallyMaintainScrollPositionWhenFocused
Public PropertySignature
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.
Signature
shouldManuallyMaintainScrollPositionWhenFocused?: boolean
value
Public PropertySignature
Signature
value?: string