VueJs
an example in case you are looking for vue.js app
<input
type="number"
step="0.01"
@invalid="(e) => e.target.setCustomValidity('your error message')"
/>
can use directly by using this
as well which will refer specifically to that input field