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

https://github.com/hubspot/tooltip

CSS Tooltips built on Tether. #hubspot-open-source
https://github.com/hubspot/tooltip

Last synced: 9 months ago
JSON representation

CSS Tooltips built on Tether. #hubspot-open-source

Awesome Lists containing this project

README

          

## Tooltip

[![GitHub
version](https://badge.fury.io/gh/HubSpot%2Ftooltip.svg)](http://badge.fury.io/gh/HubSpot%2Ftooltip)

Tooltip.js is a Javascript and CSS library for creating styleable tooltips.

## Install

__Dependencies__

* __[Tether](https://github.com/HubSpot/tether)__
* __[Drop](https://github.com/HubSpot/drop)__

Installing via `npm` and `bower` will bring in the above dependencies as well.

__npm__
```sh
$ npm install tether-tooltip
```

__bower__
```sh
$ bower install tether-tooltip
```

## Usage

```javascript
let tooltipInstance = new Tooltip({
target: document.querySelector('.tooltip-target'),
content: "My awesome content.",
classes: 'tooltip-tether-arrows',
position: 'top left'
})
```

[API Documentation](http://github.hubspot.com/tooltip)

[Demo](http://github.hubspot.com/tooltip/docs/welcome)

## Contributing

We encourage contributions of all kinds. If you would like to contribute in some way, please review our [guidelines for contributing](CONTRIBUTING.md).

## License
Copyright © 2015 HubSpot - [MIT License](LICENSE)