Open eliobricenov opened 1 year ago
Not my fav API but decided to add htmlType?: ButtonHTMLAttributes<HTMLButtonElement>['type']
to the button props, this change would be complicated to make, the button component is used a lot.
Not my fav API but decided to add
htmlType?: ButtonHTMLAttributes<HTMLButtonElement>['type']
to the button props, this change would be complicated to make, the button component is used a lot.
Then I think we should reopen this issue and reframe it as a refactor from type
to variant
and from htmlType
to type
. we'll have to open PR's on the store, website, and desktop client but it should just be a simple find and replace
I'll tag it as a low priority sustainability issue
Currently, we're using
type
to define the variant of the button from the design system, this conflicts with the HTML Buttontype
prop.For example, submitting a form with a button, is not currently possible:
We should use
variant
instead:EDIT: Mantine, ChakraUI and MaterialUI use
variant