

Every state


default


focus


filled


revealed


toggle-focus


caps-lock


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "password" | Input id; the label, hint and messages point at it. |
| name | string | "password" | Form field name. |
| label | string | "Password" | Visible label. |
| description | string | "At least 8 characters." | Help text under the field. |
| autoComplete | "current-password" | "new-password" | "current-password" | Autofill token: current-password to sign in, new-password to sign up. |
| placeholder | string | – | Placeholder inside the field. |
| defaultValue | string | – | Starting value. |
| revealed | boolean | – | Start with the password shown. |
| capsLock | boolean | – | Start with the Caps Lock warning shown; after that the keyboard decides. |
| required | boolean | – | Marks the field required. |
| disabled | boolean | – | Disables the field and the button. |
| error | string | – | Error message; makes the field invalid and links the message to it. |
| className | string | – | Extra classes on the outer Field. |


