Last active
December 1, 2021 20:11
-
-
Save Dchole/9a25fd2a0f935d265572cc76a83a8e02 to your computer and use it in GitHub Desktop.
A custom link button with MaterialUI and next/link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage | |
import ButtonLink from "@/components/ButtonLink" | |
function App() { | |
return ( | |
<ButtonLink | |
href="/store" | |
variant="contained" | |
color="primary" | |
endIcon={<StoreIcon />} | |
> | |
Go to our store | |
</ButtonLink> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment