@material-ui/icons#ZoomIn TypeScript Examples

The following examples show how to use @material-ui/icons#ZoomIn. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ZoomSpeedDial.tsx    From frontend with Apache License 2.0 5 votes vote down vote up
ScaleActionsSpeedDial: React.FunctionComponent<IProps> = ({
  onZoomInClick,
  onZoomOutClick,
  onOriginalSizeClick,
  onFitIntoScreenClick,
}) => {
  const classes = useStyles();
  const [open, setOpen] = React.useState(false);

  return (
    <SpeedDial
      ariaLabel="Scale actions"
      className={classes.speedDial}
      icon={<SpeedDialIcon />}
      onClose={() => setOpen(false)}
      onOpen={() => setOpen(true)}
      open={open}
      direction="up"
    >
      <SpeedDialAction
        icon={<ZoomIn />}
        tooltipTitle={"Zoom In"}
        onClick={onZoomInClick}
      />
      <SpeedDialAction
        icon={<ZoomOut />}
        tooltipTitle={"Zoom Out"}
        onClick={onZoomOutClick}
      />
      <SpeedDialAction
        icon={<Fullscreen />}
        tooltipTitle={"Original size"}
        onClick={onOriginalSizeClick}
      />
      <SpeedDialAction
        icon={<FullscreenExit />}
        tooltipTitle={"Fit into screen"}
        onClick={onFitIntoScreenClick}
      />
    </SpeedDial>
  );
}