External URL support for `<Button>` components

Ah duh, just like wrapping an HTML <button> with a <a> tag to convert a button into a link.

Here’s my final solution:

<Link
  external={true}
  to="https://getverdict.com"
>
  <InlineStack columns={['fill']}> {/* the InlineStack is only to make the button full width */}
     <Button
        role="button" // DON'T USE "submit", it will not open the link
        kind="primary"
     >
        Open
    </Button>
  </InlineStack>
</Link>
1 Like