How to align the drop.
{}
top:
"top""bottom,"
bottom:
"top""bottom,"
right:
"left""right,"
left:
"left""right"
Target where any suggestions drop will be aligned to. This should be a React reference. Typically, this is not required as the drop will be aligned to the TextInput itself by default.
"object"
Custom messages for TextInput. Used for accessibility by screen readers.
{}
enterSelect:
"string,"
suggestionsCount:
"string,"
suggestionsExist:
"string,"
suggestionIsOpen: string
Function that will be called when the user selects a suggestion. The suggestion contains the object chosen from the supplied suggestions.
"function"
Whether this is a plain input with no border or padding. Only use this when the containing context provides sufficient affordance
truefalse
Suggestions to show. It is recommended to avoid showing too many suggestions and instead rely on the user to type more.
[]
"string"
{}
label:
"node,"
value: any
The color of the border.
{
"dark": "rgba(255,255,255,0.33)",
"light": "rgba(0,0,0,0.33)"
}The possible sizes of the text in terms of its font-size and line-height.
{
"xsmall": {
"size": "12px",
"height": "18px",
"maxWidth": "288px"
},
"small": {
"size": "14px",
"height": "20px",
"maxWidth": "336px"
},
"medium": {
"size": "18px",
"height": "24px",
"maxWidth": "432px"
},
"large": {
"size": "22px",
"height": "28px",
"maxWidth": "528px"
},
"xlarge": {
"size": "26px",
"height": "32px",
"maxWidth": "624px"
},
"xxlarge": {
"size": "34px",
"height": "40px",
"maxWidth": "816px"
}
}Any additional style for non-string placeholder inside TextInput.
"any CSS"(props) => {}