

Every state


default


focus


checking


valid


taken


suggestion-focus


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "username" | Input id. |
| name | string | "username" | Form field name. |
| label | string | "Username" | Visible label. |
| sign | string | "@" | Fixed sign before the value. |
| placeholder | string | "yourname" | Placeholder inside the field. |
| hint | string | "Letters, numbers, dots and underscores. You can change it later." | Line under the field before anything is checked. |
| defaultValue | string | – | Starting value. |
| check | (value: string) => Promise<{ available: boolean; suggestions?: string[] }> | – | Checks the value and returns free alternatives when taken; the default checks a short local list. |
| status | "idle" | "checking" | "valid" | "taken" | "invalid" | – | Starting state, e.g. a value the server already checked. |
| suggestions | string[] | – | Free alternatives to show with a starting taken status. |
| minLength | number | 3 | Shortest value allowed. |
| maxLength | number | 20 | Longest value allowed. |
| disabled | boolean | – | Disables the field. |
| className | string | – | Extra classes on the outer Field. |
More input groups
All 14input-group-14 is in UI ProGet UI Pro, €199


