components#CustomTooltip TypeScript Examples

The following examples show how to use components#CustomTooltip. 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: QuestionHelper.tsx    From interface-v2 with GNU General Public License v3.0 6 votes vote down vote up
QuestionHelper: React.FC<{
  text: string;
  size?: number;
  color?: string;
}> = ({ text, size = 16, color }) => {
  const classes = useStyles({ color });

  return (
    <CustomTooltip title={text}>
      <Box className={classes.questionWrapper}>
        <Question size={size} />
      </Box>
    </CustomTooltip>
  );
}
Example #2
Source File: QuestionHelper.tsx    From interface-v2 with GNU General Public License v3.0 6 votes vote down vote up
PlusHelper: React.FC<{ text: string; color?: string }> = ({
  text,
  color,
}) => {
  const classes = useStyles({ color });

  return (
    <CustomTooltip title={text}>
      <Box className={classes.questionWrapper}>
        <PlusCircle size={16} />
      </Box>
    </CustomTooltip>
  );
}
Example #3
Source File: QuestionHelper.tsx    From interface-v2 with GNU General Public License v3.0 6 votes vote down vote up
LightQuestionHelper: React.FC<{ text: string; color: string }> = ({
  text,
  color,
}) => {
  const classes = useStyles({ color });

  return (
    <CustomTooltip title={text}>
      <Box className={classes.lightQuestionWrapper}>
        <span className={classes.questionMark}>?</span>
      </Box>
    </CustomTooltip>
  );
}