Feature Request: Widget `email`
samtrion opened this issue · comments
For validating email addresses based on the browser implementation. As this is already significantly more efficient than any regex/pattern matching.
It makes sense. I could add the url
widget as well.
The problem is the native validation isn’t great. For example, me@example
will be marked valid (just like me@localhost
) but it’s invalid in the real world. What you want is me@example.com
. So we need a custom regex anyway.
Thats true
, not every browser is great at this. But this is a starting point, you can extend.
Functionality like multiple
and readonly
are already given.
I’ll just add the type
property to the String widget because the UI is the same.