# Packages
Binary formdemo creates a form that accepts text inputs and supports keyboard navigation.
Binary textinputdemo shows the functionality of a text input field.
# Functions
Border adds a border around the text input field.
BorderColor sets the color of the border.
ClearOnSubmit sets the text input to be cleared when a submit of the content is triggered by the user pressing the Enter key.
CursorColor sets the color of the cursor.
DefaultText sets the text to be present in a newly created input field.
ExclusiveKeyboardOnFocus when set ensures that when this widget is focused, no other widget receives any keyboard events.
FillColor sets the fill color for the text input field.
Filter sets a function that will be used to filter characters the user can input.
HideTextWith sets the rune that should be displayed instead of displaying the text.
HighlightedColor sets the color of the text rune directly under the cursor.
Label adds a text label to the left of the input field.
LabelAlign sets the alignment of the label within its area.
MaxWidthCells sets the maximum width of the text input field as an absolute value in cells.
New returns a new TextInput.
OnChange sets a function that will be called when the content of the text input field changes.
OnSubmit sets a function that will be called with the text typed by the user when they submit the content by pressing the Enter key.
PlaceHolder sets text to be displayed in the input field when it is empty.
PlaceHolderColor sets the color of the placeholder text.
TextColor sets the color of the text in the input field.
WidthPerc sets the width for the text input field as a percentage of the container width.
# Constants
DefaultCursorColorNumber is the default color number for the CursorColor option.
DefaultFillColorNumber is the default color number for the FillColor option.
DefaultHighlightedColorNumber is the default color number for the HighlightedColor option.
DefaultLabelAlign is the default value for the LabelAlign option.
DefaultPlaceHolderColorNumber is the default color number for the PlaceHolderColor option.
# Interfaces
Option is used to provide options.
# Type aliases
ChangeFn when passed to OnChage will be called with all the text in the text input each time it gets modified.
FilterFn if provided can be used to filter runes that are allowed in the text input field.
SubmitFn if provided is called when the user submits the content of the text input field, the argument text contains all the text in the field.