Are you absolutely sure you know how to use the button element? #181
stevepolitodesign
started this conversation in
Submissions
Replies: 1 comment 1 reply
-
Thanks @stevepolitodesign!!! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used to think the
<button>
element could only exist inside a<form>
and that it did not support any attributes. In other words, I basically thought it was a more semantic version of<input type="submit">
.However, after working on a payment form for a client project, I realized that the
<button>
element is a robust, versatile and under utilized tool. Plus, knowing how to leverage forms and buttons will benefit you when using Turbo and Stimulus.https://thoughtbot.com/blog/button-element-tutorial
Beta Was this translation helpful? Give feedback.
All reactions