TextInput
Presentations
v1.0
zero-schema
No description provided.
Missing descriptions: TextDecoration.
Required fields
PresentationType Name
Properties
PresentationType
string
required
A text input allows users to enter text. It's commonly used in forms, search bars, chat applications, and more.
Allowed TextInput
Name
string
required
A unique identifier for the text input.
InitialValue
string
optional
The initial value of the input.
BackgroundColor
optional
The color used to indicate errors in the input
Default
"#FFFFFF"IsJson
boolean
optional
Indicates whether the text input should be parsed as JSON data.
Default
falsePadding
number, object
optional
The space between the text input's content and its border. Accepts a number for all sides, or an LTRB object ({"Top": …, "Left": …, "Right": …, "Bottom": …}). Responsive value maps are NOT supported here and resolve to zero.
FontSize
number, object
optional
The size of the text inside the input in pixels. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
Default
16HintText
string
optional
The text displayed in the input when it's empty to guide the user
IsNumber
boolean
optional
Specifies whether the input should accept only numeric values.
Default
falseMaxLines
number, object
optional
The maximum number of lines of text the input can display. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
Default
1OnChange
composed
optional
A function called when the input's value changes.
OnSubmit
composed
optional
A function called when the user submits the input (e.g., presses Enter).
AutoFocus
boolean
optional
Determines whether the input should be focused automatically when the screen loads.
Default
falseAutoSubmit
boolean
optional
Specifies whether the form should be submitted automatically after the input is complete.
Default
falseErrorColor
string, object
optional
The color used to indicate errors in the input. Accepts a color name, the "primary" token, a #hex string, or a gradient object ({"Colors": [...], "Type": "Linear"|"Radial"|"Sweep"}).
Default
"#FF0000"IsRequired
boolean
optional
Indicates whether the input is required to be filled out.
Default
falseAutoCorrect
boolean
optional
Specifies whether autocorrection should be applied to the input.
Default
falseObscureText
boolean
optional
Specifies whether the text entered in the input should be hidden (e.g., for passwords).
Default
falseDisplayText
string
optional
The initial value displayed in the input.
BorderRadius
number, object
optional
The radius of the border corners of the input to make it rounded. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
BorderColor
string, object
optional
The color of the input's border accepting color name or hex value. Accepts a color name, the "primary" token, a #hex string, or a gradient object ({"Colors": [...], "Type": "Linear"|"Radial"|"Sweep"}).
Default
"#000000"BorderWidth
number, object
optional
The width of Input border in pixels. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
Default
1DefaultColor
string, object
optional
The default color of text in input accepting color name or hex value. Accepts a color name, the "primary" token, a #hex string, or a gradient object ({"Colors": [...], "Type": "Linear"|"Radial"|"Sweep"}).
Default
"#000000"FontFamily
string
optional
The font family used for the text in the input.
Default
"DefaultUI"Allowed DefaultUI DefaultMonospace Google:Inter Google:Roboto Google:Open Sans Google:Lato Google:Montserrat Google:Poppins Google:Nunito Google:Nunito Sans Google:Raleway Google:Work Sans Google:Rubik Google:Karla Google:Manrope Google:DM Sans Google:Outfit Google:Sora Google:Space Grotesk Google:Plus Jakarta Sans Google:Barlow Google:Cabin Google:Ubuntu Google:PT Sans Google:Fira Sans Google:Josefin Sans Google:Quicksand Google:Archivo Google:Noto Sans Google:Merriweather Google:Playfair Display Google:Lora Google:PT Serif Google:EB Garamond Google:Libre Baskerville Google:Crimson Text Google:Roboto Slab Google:Zilla Slab Google:Noto Serif Google:Oswald Google:Bebas Neue Google:Anton Google:Pacifico Google:Dancing Script Google:Caveat Google:Comfortaa Google:Righteous Google:Fira Code Google:JetBrains Mono Google:Roboto Mono Google:Source Code Pro Google:Space Mono Google:Inconsolata Google:Mukta Google:Hind Google:Noto Sans Devanagari
FontWeight
number, object
optional
The weight of the font used for the text in the input. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
Default
400Color
string, object
optional
The color of the text in the input. Accepts a color name, the "primary" token, a #hex string, or a gradient object ({"Colors": [...], "Type": "Linear"|"Radial"|"Sweep"}).
Default
"#000000"TextShadow
array
optional
A shadow effect applied to the text in the input.
TextAlign
string
optional
The alignment of the text in the input.
Default
"Left"Allowed Left Center Right Justify
ReadOnly
boolean
optional
Specifies whether the input is read-only.
Default
falseTextOverflow
string
optional
The strategy for handling text overflow in the input.
Allowed Left Center Right Justify
TextDecoration
string
optional
No description
Default
"The decoration applied to the text in the input."Allowed Left Right
Height
number, object
optional
The height of the input in pixels. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
DisplayTextHorizontal
boolean
optional
Specifies whether the display text should be horizontally displayed.
Default
falseDisplayTextWidth
number, object
optional
The width of the display text in pixels. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
Default
100LabelWidth
number, object
optional
The width of the input's label in pixels. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
Default
100FocusedColor
string, object
optional
The color of the text when the input is focused. Accepts a color name, the "primary" token, a #hex string, or a gradient object ({"Colors": [...], "Type": "Linear"|"Radial"|"Sweep"}).
InputValidationRegex
string
optional
A regular expression used to validate the input.
InputValidationErrorMessage
string
optional
The error message displayed when the input fails validation.