Skip to content

Password

Used to collect passwords.

import { Password } from '@fintech-sandpit/ui/react';
return (
<Password />
);
NameTypeDefaultDescription
valuestringThe value of the password field
sizeSizemdThe size of the password field
namestringpasswordThe name of the password field
revealablebooleanfalseWhether the password field value is revealable
invalidbooleanfalseWhether the password field value is invalid
disabledbooleanfalseWhether the password field is disabled
readOnlybooleanfalseWhether the password field is read only
NameTypeDescription
onChange(value: string) => voidEvent handler for when the value changes
onReveal(state: boolean) => voidEvent handler for when the reveal state changes
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'