Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
1656f80
check browser support and don't initialize tippy if not supported
Sep 11, 2017
d839f9d
fixed component name
0xflotus Feb 27, 2018
1d25cbb
feat (Typescript): Add typescript support , work done by @Metavirulen…
Apr 18, 2018
e1f7f7b
fix (Typedef): Triggers updated and return type from withTooltip
Apr 18, 2018
caea93e
Change `div` tooltip target wrapper to `span`
didoesdigital May 19, 2018
b0b2905
Add "tag" option for tooltip target wrappers
didoesdigital May 19, 2018
52cc6a5
Fix settings of undefined
tuanthieu2993 Aug 13, 2018
266296a
Merge pull request #86 from phamtuan2993/chore/fix-settings-of-undefined
tvkhoa Sep 17, 2018
d0f9184
Build
tvkhoa Sep 26, 2018
fb44275
1.2.3
tvkhoa Sep 26, 2018
d8b0a06
Merge pull request #60 from 0xflotus/patch-1
tvkhoa Oct 6, 2018
ec93e92
chore: add pkg.files
tungv Oct 7, 2018
3e503f0
chore: reformat
tungv Oct 7, 2018
4dff99c
Merge pull request #95 from tungv/patch-1
tvkhoa Oct 7, 2018
063fe09
There should be the end.
namvoeh Nov 8, 2018
8991d09
fix (package.json): Move dependencies to devDependencies
Aug 12, 2019
77cfc9d
Merge pull request #70 from jafin/feature/typescript
tvkhoa Oct 22, 2019
4e320c4
Bump merge from 1.2.0 to 1.2.1
dependabot[bot] Oct 22, 2019
d4dd123
Bump extend from 3.0.0 to 3.0.2
dependabot[bot] Oct 22, 2019
3820ee0
Bump eslint from 3.19.0 to 4.18.2
dependabot[bot] Oct 22, 2019
f363922
1.2.4
tvkhoa Oct 22, 2019
74045e0
Merge pull request #99 from namvoeh/patch-1
tvkhoa Oct 22, 2019
eb8c321
Move popper.js to dependencies
tvkhoa Oct 22, 2019
dcb7252
1.2.5
tvkhoa Oct 22, 2019
e5c009f
Move ts react type to dependencies
tvkhoa Oct 22, 2019
1a5e398
1.2.6
tvkhoa Oct 22, 2019
6ca6a9b
Fix ts type support publish
tvkhoa Oct 22, 2019
a0e6ec4
1.3.0
tvkhoa Oct 22, 2019
2f4d760
Merge branch 'master' of github.com:tvkhoa/react-tippy
tvkhoa Oct 22, 2019
779e864
Add guards
ZoharLiran Nov 19, 2017
e1972cc
merge PR 36 - Add guard
tvkhoa Oct 23, 2019
dbc0707
1.3.1
tvkhoa Oct 23, 2019
6b07902
Merge pull request #25 from Metavirulent/Check_Browser_Support
tvkhoa Oct 23, 2019
3eb67c1
fix typescript animation type
senelway Dec 26, 2019
60724b5
Merge pull request #126 from stk-dmitry/patch-1
anhvy Dec 30, 2019
58bad0b
Merge pull request #119 from tvkhoa/dependabot/npm_and_yarn/extend-3.0.2
anhvy Jan 2, 2020
839ed1a
Merge pull request #120 from tvkhoa/dependabot/npm_and_yarn/eslint-4.…
anhvy Jan 2, 2020
8d99667
Merge pull request #118 from tvkhoa/dependabot/npm_and_yarn/merge-1.2.1
anhvy Jan 2, 2020
2b55d1f
feat: allow popper to receive z-index from user settings
nv-anhvy Jan 31, 2020
f123696
Merge pull request #129 from tvkhoa/ft/popper/zindex
tvkhoa Feb 2, 2020
eee83bc
1.3.3
tvkhoa Feb 2, 2020
70e80b7
Build new script
tvkhoa Feb 3, 2020
444943c
1.3.4
tvkhoa Feb 3, 2020
0702f3a
feat: add github actions for auto publish to npm
anhvy Feb 24, 2020
a9b7697
chore: add auto build before publish to npm
anhvy Feb 24, 2020
ae83d7e
Merge branch 'master' into custom-tag-element-for-tooltip-trigger
anhvy Feb 24, 2020
3658108
Merge pull request #73 from didoesdigital/custom-tag-element-for-tool…
anhvy Feb 24, 2020
8c4ee73
Use official ReactDOM.createPortal to support new React context api
tuanthieu2993 May 11, 2020
dbad06e
handle propagation issue of reactDOM.createPortal
tuanthieu2993 May 11, 2020
76ebeb1
Update dist
tuanthieu2993 May 11, 2020
a5c60a5
Add render condition of createPortal result
tuanthieu2993 May 11, 2020
908f318
Update dist
tuanthieu2993 May 11, 2020
d560412
Add React Version to README to indicate supported react-version
May 12, 2020
d9cb7dc
Merge pull request #135 from phamtuan2993/master
tvkhoa May 13, 2020
b2e430e
1.4.0
tvkhoa May 13, 2020
ca6ae5d
Check shown is function before call
tuanthieu2993 Aug 21, 2020
c6e6169
Merge pull request #146 from phamtuan2993/master
tvkhoa Aug 21, 2020
1859beb
Merge remote-tracking branch 'upstream/master' into update-tippy
Jul 25, 2025
7ccc016
feat: update react to v18
Jul 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: NPM Publish

on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.npm_token }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# IDEA/Webstorm project files
.idea
*.iml
21 changes: 0 additions & 21 deletions .npmignore

This file was deleted.

13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## React Tippy

[![React Version](https://img.shields.io/badge/react-16.x-blue)](https://reactjs.org/)

A lightweight tooltip for React. Demo at [Demo page here...](https://tvkhoa.github.io/testlib)

Based on `tippy.js` and powered by `Popper.js`
Expand All @@ -9,9 +11,9 @@ Based on `tippy.js` and powered by `Popper.js`

## Why you should use it?

It is designed to work friendly with React, it provides `<Tooltip>` element or a higher-order component
It is designed to work friendly with React, it provides `<Tooltip>` element or a higher-order component.

It uses `React DOM` to render tooltip content. Therefore, you can fully use it in your React project without doubt
It uses `React DOM` to render tooltip content. Therefore, you can fully use it in your React project without doubt.

It is an enhancement of Tippy.js for using in React.

Expand Down Expand Up @@ -71,7 +73,7 @@ const Header = () => (
<h2>Header here</h2>
);

const HeaderWithTootip = withTooltip(Header, {
const HeaderWithTooltip = withTooltip(Header, {
title: 'Welcome to React with tooltip',
});

Expand Down Expand Up @@ -112,6 +114,7 @@ const HeaderWithTootip = withTooltip(Header, {
|size|`regular`|`small` `regular` `big`|Specifies how big the tooltip is.|
|sticky|`false`|`true` `false`|Specifies whether the tooltip should stick to its element reference when it's showing (for example, if the element is animated/moves).|
|stickyDuration|200|Any number (milliseconds)|Specifies the 'smoothing' transition when the popper's position updates as its element moves.|
|tag|`div`|A HTML element tag name e.g. `span`|Specifies the HTML element used to wrap the content that triggers the tooltip. When using a tooltip inline, `span` is more likely to be valid markup. When using a higher-order component with a block-level element, a `div` or `a` is more likely to be valid markup.|
|touchHold|false|`true` `false`|Changes the trigger behavior on touch devices. It will change it from a tap to show and tap off to hide, to a tap and hold to show, and a release to hide.|
|onShow|noop|function|Callback when the tooltip has been triggered and has started to transition in|
|onShown|noop|function|Callback when the tooltip has fully transitioned in and is showing|
Expand Down Expand Up @@ -186,7 +189,7 @@ You can use `interactive` prop and `html` for your interactive tooltip

Tippy gracefully degrades on older browsers (and with JavaScript disabled) by using the browser's default title tooltip.

If you want to support older browsers, please add `polyfill` by yourself
If you want to support older browsers, please add `polyfill` by yourself.

### Supported browsers

Expand Down Expand Up @@ -221,7 +224,7 @@ react-tippy provides `useContext` for Tooltip component. It can allow you to use

## Could I change tooltip style (width, height, ...)?

You can change css to have your tooltip width. If you use `html` props, you can do like this
You can change css to have your tooltip width. If you use `html` props, you can do like this:

```javascript
html={(
Expand Down
Loading