Overlays
Tooltip
A CSS-only label on hover and keyboard focus. Esc hides it.
Tooltip
<span class="og-tooltip" data-tip="Copy link"><button class="og-button og-button--icon" aria-label="Copy link">⧉</button></span>
<span class="og-tooltip" data-tip="Settings" data-tip-side="bottom"><button class="og-button og-button--icon" aria-label="Settings">⚙</button></span>React
// No wrapper needed:
<span className="og-tooltip" data-tip="Copy link">
<Button icon aria-label="Copy link">⧉</Button>
</span>In every theme
Clean SaaS
Glassmorphism 2.0
Liquid glass
Neumorphism / Soft UI
Claymorphism
Neubrutalism
Aurora / mesh gradient
Keyboard and screen readers
- Shows on focus. Esc hides it without moving focus (WCAG 1.4.13); it returns after focus leaves.
- The tooltip is decorative: put the same text in the control’s aria-label.
Install
npx @og-ui/cli add tooltip
npx @og-ui/cli add tooltip --react # with the React component