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

Quick input validator #77

Open
divagueame opened this issue Oct 21, 2023 · 2 comments
Open

Quick input validator #77

divagueame opened this issue Oct 21, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@divagueame
Copy link

Hi, I just added a quick input validator on a rails app I'm working on. If there's some interest to adding something like that to stimulus-components, I wouldn't mind giving it a go.

If a field is required, submit button is disabled.
image

When the user inputs some text, submit button is enabled.
image

@topherfangio
Copy link

I'm looking at doing something very similar. @guillaumebriday what is the best way to contribute a new component?

Should we build it in a repo of our own and submit a PR to add it to the content/docs on the https://github.com/stimulus-components/stimulus-components repo?

Thanks!

@guillaumebriday
Copy link
Member

That would be great!

I just created https://github.com/stimulus-components/stimulus-valid-form (the name might change in the future before release) so you can submit a PR on it, you can use the https://github.com/stimulus-components/stimulus-skeleton project to create a new component 👍

Thanks guys!

@guillaumebriday guillaumebriday added the enhancement New feature or request label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants