s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Actions and display

Tooltip

Tooltip — anchored, delayed text bubble for a trigger. Shows on hover and keyboard focus, hides on leave / blur / Escape. The trigger is wired to the bubble via `aria-describedby` (always set; the bubble is in the DOM and revealed on open), and the bubble carries `role="tooltip"`. CSS-anchored via a `placement` prop — no JS positioning dependency.

Public export

typescript
import { Tooltip } from '@happyvertical/smrt-ui/ui';
Import path
@happyvertical/smrt-ui/ui
Props
4
Props described
4 of 4
Bindable state
0
Callback events
0
Verified release
0.44.0

Props

NameTypeRequiredDescription
textstringYesTooltip text.
placementTooltipPlacementNoPlacement relative to the trigger.
delaynumberNoShow delay in ms.
childrenSnippetYesThe trigger content.

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation