0.1.0 • Published 3 years 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.0lodash: ^4.17.10prop-types: ^15.6.1react: ^16.2.0react-dom: ^16.2.0react-instantiable-stateless: ^1.0.3react-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
3 years ago
1.0.0-alpha.37
3 years ago
1.0.0-alpha.36
3 years ago
1.0.0-alpha.35
7 years ago
1.0.0-alpha.31
7 years ago
1.0.0-alpha.30
7 years ago
1.0.0-alpha.27
7 years ago
1.0.0-alpha.24
7 years ago
1.0.0-alpha.20
7 years ago
1.0.0-alpha.19
7 years ago
1.0.0-alpha.16
7 years ago
1.0.0-alpha.12
7 years ago
1.0.0-alpha.7
7 years ago
1.0.0-alpha.6
7 years ago
1.0.0-alpha.5
7 years ago
1.0.0-alpha.4
7 years ago
1.0.0-alpha.2
7 years ago
0.1.0
8 years ago