Password
The password preset allows any character input. It is suitable for password fields where visual masking is handled by the input type.
Raw Value
Display Value
import { useViraMask } from '@virastack/input-mask';
import { useForm } from 'react-hook-form';
const form = useForm({ defaultValues: { password: '' } });
const { password } = useViraMask({
form,
schema: { password: 'password' },
});
<input {...password} />