Releases: mohsinulhaq/react-popper-tooltip
Releases · mohsinulhaq/react-popper-tooltip
Switch to TypeScript 🎉
Jumping into the hype train 🚂, we have rewritten the whole codebase with TypeScript! This brings better tooling support 🛠 and bug visibility 🐛. High quality typings are shipped along with the library. Do check that autocomplete out in your favorite editor! ✌️
Fix erratic behaviour on iOS
Touch handling should be seamless on Safari and Chrome on iOS
Added getTriggerRef prop
- Use
getTriggerRefprop to get a reference to the trigger element - Reduced minified bundle size from 52.8kB to 36.7kB 🎉
https://bundlephobia.com/result?p=react-popper-tooltip
Added follow cursor feature
Using the followCursor prop, usually used along with hover trigger and no arrow element, you can spawn the tooltip at the location of your cursor over the trigger.
PS: The package will require React v16.6.0 in order for continuation feature to work.
Facilitate server side rendering
v2.6.3 2.6.3
Make React.createPortal usage optional
v2.6.0 2.6.0
Decreased library size by more than 20%
Used rollup to create smaller and efficient builds
Added docs page and moved to yarn
- Added
onVisibleChangecallback
Added esm and cjs builds
- added separate
esm(ECMAScript Module) andcjs(CommonJS) build foldersesmbuild is useful for harnessing tree shaking
- remove some useless dependencies
- upgrade babel packages
Added support for older browsers
resolves #6
BREAKING CHANGES
arrowPlacementrenamed toplacementarrowStyleremoved,getArrowProps()added instead