Velocity X Components

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.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add glossary-term-tooltip

Built for astro.

Full docs for Glossary Term Tooltip →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
Glossary Term Tooltip

Net revenue retention is driven by

Revenue retained from existing customers over a period, including expansion and contraction, excluding new logos.

Read full definition more than by new logos.

Props

NameTypeRequiredDefaultDescription
termstringNoShort label shown in the panel header, e.g. an acronym. Defaults to the slotted text.
definitionstringYesFull definition shown in the panel body.
hrefstringNoLink to the full glossary entry. Omit to render a definition-only tooltip.
linkLabelstringNo'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.

text
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.

More from Long-form.