Socket
Book a DemoInstallSign in
Socket

@didww/react-tooltip

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@didww/react-tooltip

Tooltip component

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
71
-11.25%
Maintainers
7
Weekly downloads
 
Created
Source

React Tooltip

Simple Tooltip component

Install

npm install @didww/react-tooltip or yarn add @didww/react-tooltip

Usage

import Tooltip  from '@didww/react-tooltip';

const MyComponent = () => {
  return (
    <Tooltip title={ <span>Tooltip Title here</span> }>
      <p>Tooltip Content here</p>
    </Tooltip>
  );
};

Api

ParameterDescriptionTypeDefault
titleElement, which triggers tooltip appearanceReactNode- (required)
childrenContent of tooltipReactNode | ReactNode[]null
placementPosition of displayed tooltip contenttop-left | top-right | bottom-left |bottom-righttop-right
maxWidthMaximum width in pixels of tooltip contentnumber198
classNameclassName of tooltip wrapper componentstring''

Keywords

DIDWW

FAQs

Package last updated on 26 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts