Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
27 lines
663 B
TypeScript
27 lines
663 B
TypeScript
import Button from '@mui/joy/Button';
|
|
|
|
export default function CustomShadowOnElement() {
|
|
return (
|
|
<Button
|
|
size="lg"
|
|
sx={(theme) => ({
|
|
boxShadow: theme.shadow.md,
|
|
transition: '0.2s',
|
|
'--joy-shadowChannel': theme.vars.palette.primary.mainChannel,
|
|
'--joy-shadowRing': 'inset 0 -3px 0 rgba(0 0 0 / 0.24)',
|
|
'&:hover': {
|
|
boxShadow: theme.shadow.lg,
|
|
transform: 'translateY(-3px)',
|
|
},
|
|
'&:active': {
|
|
boxShadow: theme.shadow.md,
|
|
transform: 'translateY(0px)',
|
|
'--joy-shadowRing': '0 0 #000',
|
|
},
|
|
})}
|
|
>
|
|
Buy
|
|
</Button>
|
|
);
|
|
}
|