Field
Install
Usage
Basic Usage
Require Field
Custom Types
Disabled
Colon
ShowIcon
Field Events
Field Ref
Auto Focus
Error Info
Max Length Word Limit
Field With Button
Formatter
Label Utilities
Label Input Alignment
Auto Resize
API
Props
Attribute | Description | Type | Default | Required |
| Filed value | string | - | optional |
| Can be set to | string |
| optional |
| Field label | string | - | optional |
| Name | string | - | optional |
| Placeholder | string | - | optional |
| Whether to be readonly | boolean |
| optional |
| Whether to display colon after label | boolean |
| optional |
| Whether to be readonly | boolean |
| optional |
| Label icon that appears on the left | string | - | optional |
| Left side icon name | string | - | optional |
| Right side icon name | string | - | optional |
| Whether to be clearable | boolean |
| optional |
| Whether to show click feedback when clicked | boolean |
| optional |
| Whether to auto focus | boolean |
| optional |
| Whether to show error info | boolean |
| optional |
| Error message | string | - | optional |
| Max length of value | number | - | optional |
| Whether to show word limit, need to set | boolean |
| optional |
| Input value formatter | Function |
| optional |
| Label className | string | - | optional |
| Label width | string | - | optional |
| Label align, can be set to | TAlignment |
| optional |
| Input align, can be set to | TAlignment |
| optional |
| Error message align, can be set to | TAlignment |
| optional |
| Whether to show required mark | boolean |
| optional |
| Whether to show inner border | boolean |
| optional |
Event
Event | Description | Arguments |
| Triggered when input value changed | value: String |
| Triggered when click clear icon | event: Event |
| Triggered when click Field | event: Event |
| Triggered when click input | event: Event |
| Triggered when input gets focus | event: Event |
| Triggered when input loses focus | event: Event |
| Triggered when click the left icon of Field | event: Event |
| Triggered when click the right icon of Field | event: Event |
| Triggered when container ref is not undefined nor null | event: Event |
| Triggered when Field ref is not undefined nor null | event: Event |
| Triggered when input gets focus | event: Event |
Last updated