1.0.6 • Published 3 years ago

@didww/react-tooltip v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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''
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago