Tooltip @astryx-svelte/core v0.3.0 · Tooltip

Usage

A short text hint that appears on hover or focus, anchored to a trigger element. Use it to describe icon-only buttons, show the full text of truncated labels, or provide supplementary context without cluttering the UI.
ts
import { Tooltip } from '@astryx-svelte/core';

Best practices

GuidancePractices
DoKeep tooltip content concise: aim for under 140 characters of plain text.
DoAdd a tooltip to icon-only buttons and controls that lack a visible label.
Don'tPlace interactive elements like links or buttons inside a tooltip; use HoverCard or Popover instead.
Don'tUse tooltips for essential information that users must see to complete a task.

Examples

Common configurations, variations, and states.
Tooltip — Action Bar
Tooltips on an action button bar with contextual descriptions.
Tooltip — Hook Usage
Tooltip using the useTooltip hook for programmatic control.
Tooltip — Inline Text
Tooltips on inline text terms for definitions.