PHPackages                             jacerider/neo\_tooltip - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jacerider/neo\_tooltip

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

jacerider/neo\_tooltip
======================

Provide tooltip API for elements and fields.

1.0.42(6mo ago)04843proprietaryPHP

Since Aug 26Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/jacerider/neo_tooltip)[ Packagist](https://packagist.org/packages/jacerider/neo_tooltip)[ Docs](https://github.com/jacerider/neo_tooltip)[ RSS](/packages/jacerider-neo-tooltip/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (3)Versions (44)Used By (3)

CONTENTS OF THIS FILE
---------------------

[](#contents-of-this-file)

- Introduction
- Requirements
- Installation
- Usage within TWIG
- Usage within PHP
- Options

INTRODUCTION
------------

[](#introduction)

Provide tooltip API for elements and fields. It uses the Tippy.js library.

REQUIREMENTS
------------

[](#requirements)

This module requires no modules outside of Drupal core.

INSTALLATION
------------

[](#installation)

Install as you would normally install a contributed Drupal module. Visit  for further information.

USAGE WITHIN TWIG
-----------------

[](#usage-within-twig)

Simple text:

```

  Your content.
  {{ 'Tooltip content'|neo_tooltip_content }}

```

Build array:

```

  Your content.
  {{ content|neo_tooltip_content }}

```

USAGE WITHIN PHP
----------------

[](#usage-within-php)

```
// Link element.
$build['link'] = [
  '#type' => 'link',
  '#title' => $this->t('Tooltip trigger'),
  '#url' => Url::fromRoute(''),
];
$content = 'Tooltip content';
$tooltip = new Drupal\neo_tooltip\Tooltip($content);
$tooltip
  ->setAnimationToShiftAway()
  ->setPlacementToBottomStart()
  ->setArrow(FALSE)
  ->setTrigger('focusin');
$tooltip->applyTo($build['link']);

// Markup element.
$build['markup'] = [
  '#markup' => '' . $this->t('This is a markup tooltip.') . '',
];
$tooltip = new Tooltip('Tooltip content');
$tooltip->applyTo($build['markup']);
```

You can also use the use a helper trait in a class.

```
use Drupal\neo_tooltip\TooltipTrait;

// Trigger will be a string or renderable element.
$this->tooltip('Trigger', [
  '#markup' => 'Content',
], [
  'placement' => 'top-start',
]);

// Trigger will be a link.
$this->tooltipAsLink('Trigger', [
  '#markup' => 'Content',
], [
  'placement' => 'top-start',
])
```

OPTIONS
-------

[](#options)

### animation

[](#animation)

```
{
  // default
  trigger: 'fade',
  // others
  trigger: false,
  trigger: 'shift-away',
  trigger: 'shift-toward',
  trigger: 'scale',
  trigger: 'perspective',
}
```

### trigger

[](#trigger)

```
{
  // default
  trigger: 'mouseenter focus',
  // others:
  trigger: 'click',
  trigger: 'focusin',
  trigger: 'mouseenter click',
  // only programmatically trigger it
  trigger: 'manual',
}
```

### placement

[](#placement)

```
{
  // default
  placement: 'top',

  // full list:
  placement: 'top-start',
  placement: 'top-end',

  placement: 'right',
  placement: 'right-start',
  placement: 'right-end',

  placement: 'bottom',
  placement: 'bottom-start',
  placement: 'bottom-end',

  placement: 'left',
  placement: 'left-start',
  placement: 'left-end',

  // choose the side with most space
  placement: 'auto',
  placement: 'auto-start',
  placement: 'auto-end',
}
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance67

Regular maintenance activity

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

43

Last Release

195d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/097ea6514c7dff8bd82162fe88411080a14444a73f86c15ab22eefe28a33059d?d=identicon)[jacerider](/maintainers/jacerider)

---

Top Contributors

[![jacerider](https://avatars.githubusercontent.com/u/638651?v=4)](https://github.com/jacerider "jacerider (76 commits)")

### Embed Badge

![Health badge](/badges/jacerider-neo-tooltip/health.svg)

```
[![Health](https://phpackages.com/badges/jacerider-neo-tooltip/health.svg)](https://phpackages.com/packages/jacerider-neo-tooltip)
```

###  Alternatives

[farmos/farmos

A web-based farm record keeping application.

1.2k6.7k1](/packages/farmos-farmos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
