reflex/docs/library/overlay/tooltip.md
2024-02-26 17:18:28 +01:00

29 lines
551 B
Markdown

---
components:
- rx.radix.tooltip
Tooltip: |
lambda **props: rx.radix.themes.tooltip(
rx.radix.themes.button("Hover over me"),
content="This is the tooltip content.",
**props,
)
---
```python exec
import reflex as rx
```
# Tooltip
A `tooltip` displays informative information when users hover over or focus on an element.
It takes a `content` prop, which is the content associated with the tooltip.
```python demo
rx.tooltip(
rx.button("Hover over me"),
content="This is the tooltip content.",
)
```