API and Development
Input from @prepared911/ui/input is the native text control. It has no label, no icons, and no mask. A labeled field is Field from @prepared911/ui/field.
onValueChange(value, details) replaces onChange(event).
| Prop | Meaning |
|---|---|
value / defaultValue | The text. |
onValueChange | Next value and a reason. |
size | InputSize. |
disabled / readOnly / required | Native states. |
name | Submitted with the form. |
Field.
| Prop | Meaning |
|---|---|
label | Visible name. |
leadingIcon / trailingIcon | Decorative icons. |
action | One button at the end. Search and Password own their own trailing control. |
type | FieldType, including Email, Tel, Search, and Password. |
mask | A mask. Not a separate enum on Input. |
description / error | Helper and error copy. |
FieldType.Tel.