Skip to content

Allow passing type to <Button> #384

@JasonEtco

Description

@JasonEtco

Hiya! In using the <Button> component inside of a form, I attempted to give it the type="submit" attribute, but it was overwritten with type="button":

<form>
  <Button type="submit">Place order for pizza</Button>
  {/* rendered as <button type="button"> */}
</form>

It'd be great to allow type to be set, and then I guess setting button as the defaultProp? Let me know if I can help!

cc @emplums, chatted about this in Slack 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions