0.1.0 • Published 12 months ago
@talixo/tooltip v0.1.0
Talixo Tooltip
UI Component which represents Tooltip
How to install
Package is available as @talixo/tooltip
in NPM registry, so you can use it in your project
using npm install @talixo/tooltip --save
or yarn add @talixo/tooltip
.
Requirements
Your package should additionally have some extra dependencies:
@talixo/portal: ^0.1.0
@talixo/shared: ^0.1.0
lodash: ^4.17.10
prop-types: ^15.6.1
react: ^16.2.0
react-dom: ^16.2.0
react-instantiable-stateless: ^1.0.3
react-transition-group: ^2.2.1
These packages are required by @talixo/tooltip
, but you have to install them manually,
to avoid having different versions of these in your application.
Supported props
Property name | Type | Default | Description |
---|---|---|---|
children | nodes | n/a | Tooltipped elements |
className | string | n/a | Additional class name passed to the tooltip |
fade | bool | false | Fade in / out animation |
fadeTime | number | n/a | Fadetime |
open | bool | n/a | Controls whether tooltip is open |
position | Position | top | Preferred tooltip position |
lockPosition | bool | false | Lock tooltip position to specified one - otherwise, it will change position when there is not enough place |
attachTo | node | n/a | node of tooltip portal |
render | function | n/a | Renders tooltip content |
style | object | n/a | Additional styles passed to the tooltip |
arrow | bool | true | Show arrow next to tooltip |
triggerOn | TriggerType | hover | Type of event to open tooltip |
Type name | Enum options |
---|---|
Position | 'left', 'right', 'top', 'bottom' |
TriggerType | 'hover', 'click' |
Changelog
- 0.1.0 - initial version
1.0.0-alpha.38
12 months ago
1.0.0-alpha.37
12 months ago
1.0.0-alpha.36
12 months ago
1.0.0-alpha.35
5 years ago
1.0.0-alpha.31
6 years ago
1.0.0-alpha.30
6 years ago
1.0.0-alpha.27
6 years ago
1.0.0-alpha.24
6 years ago
1.0.0-alpha.20
6 years ago
1.0.0-alpha.19
6 years ago
1.0.0-alpha.16
6 years ago
1.0.0-alpha.12
6 years ago
1.0.0-alpha.7
6 years ago
1.0.0-alpha.6
6 years ago
1.0.0-alpha.5
6 years ago
1.0.0-alpha.4
6 years ago
1.0.0-alpha.2
6 years ago
0.1.0
6 years ago