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
843 B
TypeScript
27 lines
843 B
TypeScript
import Button from '@mui/joy/Button';
|
|
import ButtonGroup from '@mui/joy/ButtonGroup';
|
|
import IconButton from '@mui/joy/IconButton';
|
|
import Tooltip from '@mui/joy/Tooltip';
|
|
import Settings from '@mui/icons-material/Settings';
|
|
import Person from '@mui/icons-material/Person';
|
|
|
|
export default function TooltipButtonGroup() {
|
|
return (
|
|
<ButtonGroup variant="soft" aria-label="tooltip button group">
|
|
<Tooltip arrow title="Go to profile">
|
|
<Button startDecorator={<Person />}>Hover me</Button>
|
|
</Tooltip>
|
|
<Tooltip arrow title="Open settings">
|
|
<span>
|
|
<IconButton disabled>
|
|
<Settings />
|
|
</IconButton>
|
|
</span>
|
|
</Tooltip>
|
|
<Tooltip arrow title="Go to profile">
|
|
<Button endDecorator={<Person />}>Hover me</Button>
|
|
</Tooltip>
|
|
</ButtonGroup>
|
|
);
|
|
}
|