Skip to main content

TooltipProps

Props for Tooltip.

This is an interface exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import type { TooltipProps } from "@mapcairn/map";

interface TooltipProps

Properties​

children​

readonly children: ReactElement;

The one focusable element the tooltip belongs to, such as a button. It must forward its ref and spread extra props onto a DOM element.

content​

readonly content: ReactNode;

The tooltip text. Keep it short and never put the only copy of important information here.

Source: packages/map/src/ui/Tooltip/Tooltip.tsx:49