TextField
Overview
Text inputs enable the user to interact with and input content and data. This component can be used for long and short form entries.
Widget API
The CTextField
widget parameters are identical to the normal TextField
widget, however, it also has some extra parameters:
Property | Description |
---|---|
enable | Whether the text field is enabled or not.
|
label | An optional text that describes the input field.
|
description | A text that provides context about the value, such as how the value will be used.
|
validator | An optional method that validates an input.
|
isRequired | If required, the text field label will be followed by red * .
|
Example
Last updated