Closed arily closed 1 year ago
Thanks for your reminder. I want to add a htmlType
prop. It is a common way to handle original html type in some other library like antd.
I would suggest avoiding handling HTML attributes manually, that's a lot of additional work.
also, the component will be web-component compatible.
bootstrap-vue uses the variant
keyword to specify the color scheme.
I can agree with you. But it is customary for many people to use type
as the theme type control for buttons. I have no intention of changing it. And in my experience, we will hande HTML attributes manually only in a few cases.
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes here is the list for html attributes. By manually handle few selected one you may creating more inconsistent between handled and unhandled attrs.
Ok. I will change type
to variant
.
https://stackoverflow.com/questions/2825856/html-button-to-not-submit-form
form>button has to explicitly set type to
button
to prevent the form from submitting, but thetype
keyword is already used for picking variants.please consider changing the key of the
type
prop to something else, maybe something likevariant