Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 585 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 585 Bytes

TooltipView

A wrapper of MUI Tooltip with controlling props eg: enabled


Props

import { TooltipProps } from '@mui/material';

/**
 * ===========================
 * MAIN
 * ===========================
 */
// button dropdown props
export type TooltipViewProps = TooltipProps & {
  /**
   * whether enabled tooltip, by default will see if title is provided
   * by providing will hard force applied
   */
  enabled?: boolean;
};

Example

import { TooltipView } from '@crudx/mui';

<TooltipView enabled title="Custom tooltip">
  Hey
</TooltipView>;