sgds-components-tooltip

Installation
SKILL.md

SGDS Tooltip Component Skill

<sgds-tooltip> wraps a target element and shows a small text popup on hover, focus, or click. The tooltip content must be plain text only — no HTML.

Prerequisites

See sgds-components-setup for installation and framework integration (React 19+ vs React ≤18, Vue, Angular).

No CSS styling modifications — custom properties and CSS parts are not exposed on this component.

Quick Decision Guide

Placement?

  • placement="top" (default), bottom, left, right

How the tooltip is triggered?

  • trigger="hover focus" (default) — mouse hover + keyboard tab
  • trigger="hover" — mouse only
  • trigger="focus" — keyboard/programmatic focus only
Related skills

More from govtechsg/sgds-web-component

Installs
1
GitHub Stars
12
First Seen
Mar 12, 2026