# Upstage Design System — Tooltip (product)

- context: product · group: display
- source revision: lift-1.2.3 (Lift 1.2.3, zip sha256 8d5d9377c2b4…)
- status: content source-derived · availability implemented · verification static-only
- human docs: /ko/components/product/tooltip/ · machine doc: /agent/components/product/tooltip.md

## Required references (read these)
- /components/display/Tooltip.jsx — implementation · sha256 85b78e74e0fb…
- /components/_types.d.ts — api · key TooltipProps
- /components/display/Tooltip.prompt.md — usage-note · sha256 e6d07440ae2e…
- /kit/rules/a11y-contract.json — a11y · key Tooltip

## API (components/_types.d.ts TooltipProps)
- content?: React.ReactNode
- side?: "top" | "bottom" | "left" | "right" (default top)
- children?: React.ReactNode
- style?: React.CSSProperties

## Accessibility contract
- keys: Escape
- aria: role=tooltip, aria-describedby
- notes: 포커스로도 열린다. 필수 정보를 툴팁에만 두지 않는다

## Unverified
- Browser behaviour is not verified here (static source check only).

## Usage note (original, MIX)

Hover tooltip (neutral-900 bubble, 12px text).

### 1.9.4 상태·접근성 계약


한 트리거는 aria-describedby props를 실제 DOM으로 전달해야 한다(Button/IconButton 지원). Fragment/여러 자식은 실제 포커스된 DOM에 설명 ID를 연결하고 해제 시 기존 ID를 보존한다. hover 또는 focus가 남으면 유지하며 Escape로 닫힌다.

## Examples (from the usage note)

```jsx
<Tooltip content="Copy to clipboard"><IconButton label="Copy">…</IconButton></Tooltip>
```

```tsx
// ✗ 기본값 그대로 쓴다. 바탕이 bg-primary(보라)다
<TooltipContent>Copy to clipboard</TooltipContent>
// ✓ 중립 토큰으로 덮는다
<TooltipContent className="bg-[hsl(var(--tooltip))] text-[hsl(var(--tooltip-foreground))]">Copy to clipboard</TooltipContent>
```
