Used to collect passwords.
import { Password } from '@fintech-sandpit/ui/react';
import { Password } from '@fintech-sandpit/ui/vue';
| Name | Type | Default | Description |
|---|
value | string | — | The value of the password field |
size | Size | md | The size of the password field |
name | string | password | The name of the password field |
revealable | boolean | false | Whether the password field value is revealable |
invalid | boolean | false | Whether the password field value is invalid |
disabled | boolean | false | Whether the password field is disabled |
readOnly | boolean | false | Whether the password field is read only |
| Name | Type | Default | Description |
|---|
model-value | string | — | The value of the password field 1 |
size | Size | md | The size of the password field |
name | string | password | The name of the password field |
revealable | boolean | false | Whether the password field value is revealable |
invalid | boolean | false | Whether the password field value is invalid |
disabled | boolean | false | Whether the password field is disabled |
read-only | boolean | false | Whether the password field is read only |
- Can be used with the
v-model directive for two-way binding.
| Name | Type | Description |
|---|
onChange | (value: string) => void | Event handler for when the value changes |
onReveal | (state: boolean) => void | Event handler for when the reveal state changes |
| Name | Type | Description |
|---|
update:model-value | (value: string) => void | Event handler for when the value changes |
reveal | (state: boolean) => void | Event handler for when the reveal state changes |
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'