Skip to content

Tooltips

Standard GFM footnotes are automatically transformed into inline tooltips. No comment markers needed — write footnotes normally and they become hover tooltips in Starlight.

Starlight uses AstroAstro is a web framework focused on content-driven websites with an islands architecture. under the hood for static site generation. The plugin transforms GFMGitHub Flavored Markdown — the Markdown dialect used on GitHub. conventions into rich components.

View Markdown source
Starlight uses Astro[^1] under the hood for static site generation.
The plugin transforms GFM[^2] conventions into rich components.
[^1]: Astro is a web framework focused on content-driven websites
with an islands architecture.
[^2]: GitHub Flavored Markdown — the Markdown dialect used on GitHub.
ContextRendering
GitHubFootnote reference with footnote section at bottom of page
StarlightDotted-underline trigger with inline tooltip popup on hover

None. Tooltips are enabled by default. To disable and keep standard footnotes:

rehypeGfmComponents({ tooltips: false })

Tooltips use ~20 lines of CSS with Starlight’s CSS custom properties for theme-consistent colors. The styles are included in the bundled styles/starlight.css.

Each footnote reference becomes:

<span class="gfm-tooltip">
<span class="gfm-tooltip-trigger" tabindex="0">Astro</span>
<span class="gfm-tooltip-content" role="tooltip">
Astro is a web framework focused on content-driven websites.
</span>
</span>

The footnotes section at the bottom of the page is removed.