3.0.1 • Published 4 years ago

@app-elements/tooltip v3.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Tooltip

Shows a tooltip when hovered.

Installation

npm install --save @app-elements/tooltip

Usage

import Tooltip from '@app-elements/tooltip'

<h1><Tooltip text='This is your tooltip'>Home</Tooltip></h1>

Props

PropTypeDefaultDescription
classNameString''className given to top-level tooltip div
textString'I am default text'Text to display in Tooltip
lengthEnum'medium'Determines class to use to dictate width of tooltip. One of [ 'small', 'medium', 'large', 'xlarge', 'fit' ]
upBooleanfalseWill be positioned above your wrapped nodes
rightBooleanfalseWill be positioned to the right of your wrapped nodes
downBooleanfalseWill be positioned below your wrapped nodes
leftBooleanfalseWill be positioned to the left of your wrapped nodes
3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-alpha.0

4 years ago

2.0.0

4 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago