Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hint

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hint

Awesome tooltips at your fingertips

  • 1.1.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
29K
increased by21.13%
Maintainers
1
Weekly downloads
 
Created
Source

hint

Awesome tooltips at your fingertips

Install

Using Bower

bower install -S hint

Using npm

npm install -S hint

Usage

Just give your elements a nice tooltip in HTML. When hovered, the hint will appear.

<span data-hint='foobar'>Foo Bar</span>

You'll get a nice little tooltip. Remember to include the CSS in your styles!

hint.png

By default, the :after pseudo-selector is used. This means you can use the :before pseudo-selector for your own purposes. If you need to switch things up, use the data-hint-before attribute instead.

<span data-hint-before='foobar'>Foo Bar</span>

You can also use the aria-label attribute.

<span aria-label='foobar'>Foo Bar</span>

Hints have a z-index of 5000.

License

MIT

FAQs

Package last updated on 24 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc