An open API service indexing awesome lists of open source software.

https://github.com/orsifrancesco/small-tooltip

Just a small tooltip for ES6 and/or React.
https://github.com/orsifrancesco/small-tooltip

javascript npm npm-package react reactjs tooltip tooltips

Last synced: 1 day ago
JSON representation

Just a small tooltip for ES6 and/or React.

Awesome Lists containing this project

README

          

# small-tooltip

[![NPM version](https://img.shields.io/npm/v/small-tooltip.svg?style=flat)](https://www.npmjs.com/package/small-tooltip)

Just a small tooltip for ES6 and/or React.

![smallTooltip](https://user-images.githubusercontent.com/6490641/84581443-c6ea3380-add8-11ea-9d92-94564feb488a.gif "small-tooltip")

## Installation

```bash
$ npm install small-tooltip
```

## Examples

```jsx

// just paste these few lines of code in your main file (index.js.. or app.js..)
// that's it, I will be always available in all the pages of your project!
// ..available for the dynamic elements as well..

import SmallTooltip from 'small-tooltip';
import 'small-tooltip/smallTooltip.css'; // <-- easy to customize

const smallTooltip = new SmallTooltip();
smallTooltip.init();

```

```html



Move your mouse here to see me

```

```jsx

// simple javascript **********

// insert

somewhere on your main project file (index.js, app.js..), of course just one time!
document.body.insertAdjacentHTML('beforeend', `
`);

// example of usage
document.body.insertAdjacentHTML('beforeend', `
❤❤❤
`);

```

```jsx

// or React **********

function App() {

return (
<>

{
// insert

somewhere on your main project file (index.js, app.js..), of course just one time!

}

{
// example of usage

Move your mouse here to see me as well!


}

>
);

}

```

## Demo

[Just a example project where you can see small-tooltip in action..](https://messagerimus.com)

## License

Licensed under MIT