Input
The Input primitive is a single or multi-line text input field. It's used for transferring text information to the form.
In the properties, you can select the Input type, enter the placeholder, specify the default value, set the flags of mandatory or disabled state.
#
Available propsProp name | Description |
---|---|
name | Unique field name for the form |
type | Form element type: text, email, tel, date, number, file, search |
placeholder | The placeholder attribute specifies a short hint that describes the expected value of an input field |
defaultValue | Default field value |
required | Flag indicating a required field |
disabled | Flag indicating the field is disabled by default |
as | HTML element that will be used in the document: input or textarea |