Password
Interface
export type IPasswordTypeValue = string;
export interface IPasswordField extends CommonField {
type: 'password';
options?: {
placeholder?: string;
};
private?: () => Promise<IPasswordTypeValue>;
render?: (v: IPasswordTypeValue) => JSX.Element;
validation?: Validation<IPasswordTypeValue>;
}Example
{
type: 'password',
name: 'YOUR_PATH',
options: {
placeholder: 'Enter your password'
},
validation: z
.string()
.min(6, { message: 'Password must be at least 6 characters long' })
}