2.2.5 • Published 2 years ago

react-auto-tooltip v2.2.5

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

react-auto-tooltip

Tooltip component for react

NPM JavaScript Style Guide

The position of the tooltip is calculated automatically.

Install

npm install --save react-auto-tooltip

Usage

import { Tooltip } from 'react-auto-tooltip';

<Tooltip message="Tooltip message">hello</Tooltip>;

Live Demo

props

NameTypeDefaultDescription
visiblebooleanWhether the floating tooltip card is visible or not
messageReactNodeThe text shown in the tooltip
clickModebooleanfalseTooltip trigger click mode
defaultVisiblebooleanfalseWhether the floating tooltip is visible by default
zIndexnumber1000Config z-index of Tooltip
backgroundColorstringrgba(0, 0, 0, 0.9)The background color
styleCSSProperties
classNamestring
onVisible(visible: boolean) => voidCallback executed when visibility of the tooltip card is changed
onClickMessage() => voidSet the handler to handle click tooltip message

License

MIT © almond-bongbong

2.1.2

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.2.3

2 years ago

2.1.4

2 years ago

2.2.2

2 years ago

2.1.3

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.1.43

2 years ago

2.1.41

2 years ago

2.1.42

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.6

3 years ago

1.0.51

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