# Tooltip
Hover tooltips using CSS anchor positioning. No JavaScript required.
## Basic Usage
```html
Tooltip text
```
## Position Variants
Default is top. Add position class for other directions:
```html
Above the elementBelow the elementLeft sideRight side
```
## On Any Element
Works with any trigger element:
```html
HelpGet assistanceJDJane DoeHover this textMore info here
```
## Styling Details
- Uses CSS anchor positioning (`anchor-scope`, `position-anchor`, `position-area`)
- Background: `var(--bg)`
- Border: `var(--border-1)`
- Shadow: `var(--shadow-3)`
- Max width: 30ch (wraps longer text)
- Shows on `:hover` and `:focus-within`
- Smooth opacity transition
## Structure
```
.tooltip - Container, defines the anchor
[trigger] - Any element (button, link, span, etc.)
.tooltip-content - The tooltip text/content
```
## Accessibility
- Triggers work with focus (`:focus-within`) for keyboard users
- Use buttons or links as triggers when possible
- Tooltip content is always in DOM (just hidden via opacity)
## See Also
- [Dropdown menu](https://graffiti-ui.com/llms/dropdown.txt) - Click-triggered popover menus