Used to collect passwords.
Please enter your password Please enter your password
import { PasswordInput } from '@fintech-sandpit/ui/react';
hint="Please enter your password"
import { PasswordInput } from '@fintech-sandpit/ui/vue';
hint="Please enter your password"
| Name | Type | Required | Default | Description |
|---|
value | string | | — | Controlled value of the text input |
defaultValue | string | | — | Default (uncontrolled) value of the text input |
name | string | | password | Name of the password input |
orientation | Orientation | | vertical | Orientation of the text input |
size | Size | | md | Size of the text input |
revealable | boolean | | false | Whether the password input is revealable |
label | string | | — | Label of the text input |
hint | string | | — | Helper text of the text input |
error | string | | — | Error text of the text input |
required | boolean | | false | Whether the text input is required |
invalid | boolean | | false | Whether the text input is invalid |
readOnly | boolean | | false | Whether the text input is read only |
disabled | boolean | | false | Whether the text input is disabled |
placeholder | string | | — | Placeholder of the text input |
| Name | Type | Required | Default | Description |
|---|
model-value | string | | — | Controlled value of the text input 1 |
default-value | string | | — | Default (uncontrolled) value of the text input |
name | string | | password | Name of the password input |
orientation | Orientation | | vertical | Orientation of the text input |
size | Size | | md | Size of the text input |
revealable | boolean | | false | Whether the password input is revealable |
label | string | | — | Label of the text input |
hint | string | | — | Helper text of the text input |
error | string | | — | Error text of the text input |
required | boolean | | false | Whether the text input is required |
invalid | boolean | | false | Whether the text input is invalid |
read-only | boolean | | false | Whether the text input is read only |
disabled | boolean | | false | Whether the text input is disabled |
placeholder | string | | — | Placeholder of the text input |
- 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 |
| Name | Type | Description |
|---|
update:model-value | (value: string) => void | Event handler for when the value changes |
type Orientation = 'horizontal' | 'vertical';
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';