Module: Tooltip

MDCTooltip component implemented by react component. This control supports plain tooltip only.

Parameters:
Name Type Description
props Object
Properties
Name Type Attributes Description
id string <optional>

The ID of tooltip element. If not specified, a random string will be set automatically.

text string

The tooltip text.

className string <optional>

The class name that is added to the root element.

mdcTooltipRef React.MutableRefObject <optional>

MutableRefObject which bind an MDCRipple instance to.

Source:
Returns:
Type
DetailedReactHTMLElement
Example
import { Tooltip } from 'material-react-js';

function MyLogoutIcon(props) {
  return (
    <Tooltip text="Logout">
      <button className="material-icons mdc-icon-button" aria-label="logout">logout</button>
    </Tooltip>
  );
}