Forms and controls
PasswordInput
A password field with an accessible "Show password" toggle and an optional "Confirm password" field.Public export
typescript
import { PasswordInput } from '@happyvertical/smrt-ui/forms';- Import path
@happyvertical/smrt-ui/forms- Props
- 16
- Props described
- 16 of 16
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.70.2
Props
NameTypeRequiredDescription
namestringNoField name posted with the form.idstringNoBase id; the confirm field uses `${id}-confirm`.valuestringNoPassword value (bindable).labelstringNoLabel above the password field.confirmbooleanNoRender a "Confirm password" field and check it matches.confirmLabelstringNoConfirm field label.confirmNamestringNoOptional name for the confirm field; omitted by default (not submitted).confirmValuestringNoConfirm value (bindable).mismatchMessagestringNoReason shown when the two fields differ.showLabelstringNoToggle label.requiredbooleanNoWhether a password (and, with `confirm`, its confirmation) is required.minlengthnumberNoMinimum password length, enforced by the browser's validation.maxlengthnumberNoMaximum password length, enforced by the browser's validation.autocomplete'new-password' | 'current-password' | 'off'NoAutofill hint; `new-password` for sign-up, `current-password` for sign-in.disabledbooleanNoDisables the fields and the show toggle.classstringNoCSS class applied to the wrapper element.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.