

Every state


default


focus


typing


match


mismatch


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "new-password" | Id of the new-password input; the confirm input gets `${id}-confirm`. |
| name | string | "password" | Form name of the new password. |
| confirmName | string | "passwordConfirm" | Form name of the confirmation. |
| label | string | "New password" | Label of the first field. |
| confirmLabel | string | "Confirm new password" | Label of the second field. |
| description | string | "At least 8 characters." | Help text under the first field. |
| defaultPassword | string | – | Starting value of the first field. |
| defaultConfirm | string | – | Starting value of the second field. |
| touched | boolean | – | Treat the second field as already left, so a short mismatch shows at once. |
| mismatchError | string | "The passwords don't match. Check for a typo." | Error on the second field when the two differ. |
| matchText | string | "Passwords match." | Quiet line when they match. |
| disabled | boolean | – | Disables both fields. |
| className | string | – | Extra classes on the wrapper. |
More password fields
All 4password-01 is in UI ProGet UI Pro, €199


