Skip to content

Animated, minimal and beautiful React tooltip component. Only 3kb minified and gzipped.

License

Notifications You must be signed in to change notification settings

davidtran/react-microtip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Micro Tip

Animated, minimal and beautiful React tooltip component. Only 3kb minified and gzipped.

React Microtip

Installation

npm

npm install react-microtip --save

*yarn

yarn add react-microtip --save

Usage

import Microtip from 'react-microtip';

<Microtip
  content={"This tip is nice!"}
  duration={180}
  delay={0}
  easing="ease-in-out"
  position="top">
  <div>My Button</div>
</Microtip>

Properties

Property Is Required? Description Default value
content true Content of tooltip
duration false The duration of tooltip transition 180
delay false The delay time before showing the tooltip 0
easing false The easing applied while transitioning the tooltip ease-in-out
position false The position of tooltip. There are 8 available positions: top, top-left, top-right, bottom, bottom-left, bottom-right, left, right top

Credits

This project is inspired by Microtip library

About

Animated, minimal and beautiful React tooltip component. Only 3kb minified and gzipped.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published