Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add props inputmode and pattern #116

Merged
merged 5 commits into from
Sep 29, 2022
Merged

Add props inputmode and pattern #116

merged 5 commits into from
Sep 29, 2022

Conversation

oskar-gmerek
Copy link
Contributor

@oskar-gmerek oskar-gmerek commented Sep 28, 2022

  1. inputmode: string = ``

    The inputmode attribute hints at the type of data the user may enter. Values like 'numeric' | 'tel' | 'email' allow browsers to display an appropriate virtual keyboard. See MDN for details.

  2. pattern: string = ``

    The pattern attribute specifies a regular expression which the input's value must match. If a non-null value doesn't match the pattern regex, the read-only patternMismatch property will be true. See MDN for details.

@janosh
Copy link
Owner

janosh commented Sep 29, 2022

Thanks, nice addition! 👍

@janosh janosh merged commit ff9b461 into janosh:main Sep 29, 2022
@janosh janosh changed the title Props to manipulating inputmode and pattern attributes Add props inputmode and pattern Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants