ChoisSTANDARD UI컴포넌트 검색 /

Feedback

Tooltip

semantic HTML

hover와 focus에 짧은 보조 정보를 표시합니다.

stablefreeSince 0.2

Live example

<span data-standard-component="tooltip" class="standard-popover"><button type="button" aria-describedby="tooltip-panel">Share</button><span id="tooltip-panel" role="tooltip" hidden data-popover-panel>Copies a shareable link</span></span>

Variants and sizes

The pattern inherits theme and density tokens. Use compact, comfortable, or roomy density when the surrounding screen requires it.

compactcomfortableroomy

Public API

ContractValue
Implementationsemantic HTML
Statusstable
Licensefree
Since0.2
HTML contractNative HTML elements and attributes
EventsNative browser events

Accessibility

트리거는 aria-describedby로 tooltip과 연결되며 hover와 keyboard focus에서 열리고 Escape 또는 focus 이탈로 닫힙니다.

Server template guidance

<!-- Render the semantic HTML on the server. Load enhancement JavaScript only when this interaction is needed. -->