Long-form
Glossary Term Tooltip
An inline defined term that reveals its definition on hover and focus with a link through to the full glossary entry, so a reader who knows the jargon never breaks stride and one who doesn't gets the answer without leaving the paragraph. Keyboard-operable and dismissible with Escape, never a bare `title` tooltip.
$ velocityx add glossary-term-tooltip Built for astro.
Full docs for Glossary Term Tooltip →
Needs a licence key —
subscribe here, then
velocityx loginonce.
Net revenue retention is driven by Net Revenue Retention Revenue retained from existing customers over a period, including expansion and contraction, excluding new logos.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| term | string | No | Short label shown in the panel header, e.g. an acronym. Defaults to the slotted text. | |
| definition | string | Yes | Full definition shown in the panel body. | |
| href | string | No | Link to the full glossary entry. Omit to render a definition-only tooltip. | |
| linkLabel | string | No | 'Read full definition' | Label for the glossary link. |
File this creates
The CLI writes this path into your project, relative to its root — nothing else moves.
components/velocity/glossary-term-tooltip/GlossaryTermTooltip.astro Using the Glossary Term Tooltip component
Install it with velocityx add glossary-term-tooltip.
The CLI writes the source straight into your project — no runtime dependency, no registry
lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.
Related components
More from Long-form.
The note / tip / warning / danger callout a docs page or technical article needs repeatedly, from one component instead of four. Left accent bar + icon + label so variants read apart at a glance without relying on colour alone, built for pages that stack several of these without feeling noisy.
astroThe affiliate/sponsored/review-unit disclosure strip that monetised long-form content needs near the top of the piece — calm, matter-of-fact copy with an optional link to a standing disclosure policy.
astroA lightweight 'was this helpful?' strip for the end of a post or docs page — thumbs up/down with an optional comment box that only appears after a choice is made, ending in a thank-you state. A deliberately lighter, binary take than a full satisfaction-score prompt, built to drop straight into prose with no state library.
astroThe opening block for a blog or long-form page — kicker, headline, dek, and an author/date/read-time meta row, with an optional cover image. Marked up as a proper document header with one real h1, so the rest of the article's heading order stays correct.
astro