<Button>
Component
<Button>
is a button component with built-in variants, states, and clicking feedback.
<Button>
also handles a special child: <Link href/to='...'>
, a client side link in React Router/Next JS/Gatsby JS, for handling onClick
event.
The default tag
is <button>
, but can be automatically changed to <a>
if href
property is present -or- there is a client-side <Link>
component inside the <Button>
.
You can also manually change the tag
and/or the role
as well.
Here the demo: