import React from 'react'; import { withStyles, Theme, makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Tooltip, { TooltipProps } from '@material-ui/core/Tooltip'; import Typography from '@material-ui/core/Typography'; const LightTooltip = withStyles((theme: Theme) => ({ tooltip: { backgroundColor: theme.palette.common.white, color: 'rgba(0, 0, 0, 0.87)', boxShadow: theme.shadows[1], fontSize: 11, }, }))(Tooltip); const useStylesBootstrap = makeStyles((theme: Theme) => ({ arrow: { color: theme.palette.common.black, }, tooltip: { backgroundColor: theme.palette.common.black, }, })); function BootstrapTooltip(props: TooltipProps) { const classes = useStylesBootstrap(); return ; } const HtmlTooltip = withStyles((theme: Theme) => ({ tooltip: { backgroundColor: '#f5f5f9', color: 'rgba(0, 0, 0, 0.87)', maxWidth: 220, fontSize: theme.typography.pxToRem(12), border: '1px solid #dadde9', }, }))(Tooltip); export default function CustomizedTooltips() { return (
Tooltip with HTML {"And here's"} {'some'} {'amazing content'}.{' '} {"It's very engaging. Right?"} } >
); }