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
34 lines
693 B
TypeScript
34 lines
693 B
TypeScript
import Button from '@mui/material/Button';
|
|
import Tooltip from '@mui/material/Tooltip';
|
|
import Fade from '@mui/material/Fade';
|
|
import Zoom from '@mui/material/Zoom';
|
|
|
|
export default function TransitionsTooltips() {
|
|
return (
|
|
<div>
|
|
<Tooltip title="Add">
|
|
<Button>Grow</Button>
|
|
</Tooltip>
|
|
<Tooltip
|
|
title="Add"
|
|
slots={{
|
|
transition: Fade,
|
|
}}
|
|
slotProps={{
|
|
transition: { timeout: 600 },
|
|
}}
|
|
>
|
|
<Button>Fade</Button>
|
|
</Tooltip>
|
|
<Tooltip
|
|
title="Add"
|
|
slots={{
|
|
transition: Zoom,
|
|
}}
|
|
>
|
|
<Button>Zoom</Button>
|
|
</Tooltip>
|
|
</div>
|
|
);
|
|
}
|