Skip to content

Instantly share code, notes, and snippets.

@musasoftlabx
Created October 14, 2025 13:30
Show Gist options
  • Save musasoftlabx/3e5933a421b8ff932f4c2afe3cdccf69 to your computer and use it in GitHub Desktop.
Save musasoftlabx/3e5933a421b8ff932f4c2afe3cdccf69 to your computer and use it in GitHub Desktop.
Sample styled button
<Button
variant="contained"
loading={false} // if form is submitting, change state to true
loadingPosition="start"
sx={{
bgcolor: "primary.main",
borderRadius: 6,
borderStyle: "double", // use none incase you don't want the double border.
borderWidth: 6,
boxShadow: "rgba(52, 117, 210, 0.3) 0px 30px 90px",
color: "#fff",
fontWeight: "bold",
px: 3,
"&:hover": {
borderStyle: "double",
boxShadow: "rgba(2, 87, 210, 0.4) 0px 10px 30px",
},
}}
onClick={() => {}}
>
SAMPLE BUTTON
</Button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment