* Tooltip content, rendered in a cursor-following floating bubble. * * @example * ```tsx * * Tooltip text * * ```
({ className, children }: ContentProps)
| 420 | * ``` |
| 421 | */ |
| 422 | function Content({ className, children }: ContentProps) { |
| 423 | const ctx = useTooltipContext('Content') |
| 424 | return ( |
| 425 | <FloatingTooltip state={ctx.state} role='tooltip' id={ctx.contentId} className={className}> |
| 426 | {children} |
| 427 | </FloatingTooltip> |
| 428 | ) |
| 429 | } |
| 430 | Content.displayName = 'Tooltip.Content' |
| 431 | |
| 432 | interface ShortcutProps { |
nothing calls this directly
no test coverage detected