@didww/react-tooltip

1.0.6 • Public • Published

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

Parameter Description Type Default
title Element, which triggers tooltip appearance ReactNode - (required)
children Content of tooltip ReactNode | ReactNode[] null
placement Position of displayed tooltip content top-left | top-right | bottom-left |bottom-right top-right
maxWidth Maximum width in pixels of tooltip content number 198
className className of tooltip wrapper component string ''

Readme

Keywords

Package Sidebar

Install

npm i @didww/react-tooltip

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

778 kB

Total Files

20

Last publish

Collaborators

  • vvitto
  • bogdan.p
  • kirillparomonov
  • skumring
  • denis.o
  • gigorok
  • senid231