The email preset validates the input format to ensure it resembles a valid email address. It helps prevent common typos in email fields.
Raw Value
Display Value
import { useViraMask } from '@virastack/input-mask';
import { useForm } from 'react-hook-form';
const form = useForm({ defaultValues: { email: '' } });
const { email } = useViraMask({
form,
schema: { email: 'email' },
});
<input {...email} />