
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@bevacqua/hint
Advanced tools
Awesome pure CSS tooltips at your fingertips
Using Bower
bower install -S @bevacqua/hint
Using npm
npm install -S @bevacqua/hint
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!

By default, the :after pseudo-selector is used. This means you can use the :before pseudo-selector for your own purposes. If you want the data-hint to use :before, then you must use the hint-before class on the element as well.
<span data-hint='foobar' class='hint-before'>Foo Bar</span>
You can also use the aria-label attribute.
<span aria-label='foobar'>Foo Bar</span>
If you want the aria-label hint to use :before, then you must use the hint-before class on the element as well.
<span aria-label='foobar' class='hint-before'>Foo Bar</span>
Hints have a z-index of 5000.
The CSS will only get us so far, and we must add a tiny bit of JavaScript if we want a little functionality. This is not critical to @bevacqua/hint, and is therefore considered an optional feature. The JavaScript code enables the following features.
To include the JavaScript, just use the following snippet if you're using CommonJS, or refer to the dist directory for the compiled distributions.
require('@bevacqua/hint');
To set the maximum hint width, do:
require('@bevacqua/hint').maximumWidth = 650;
You can also set it to 'auto', which means the full viewport size will be used if the tooltip exceeds the viewport size in length. In practice, 'auto' means Infinity will be used. The default maximumWidth value is 650 pixels wide.
MIT
FAQs
Awesome tooltips at your fingertips
We found that @bevacqua/hint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.