Skip to content

1681-engine / react / TooltipProps

Interface: TooltipProps ​

Defined in: src/react/Tooltip.tsx:8

Properties ​

above? ​

ts
optional above?: boolean;

Defined in: src/react/Tooltip.tsx:15

Open over the cursor (or on this side of the anchor) first; it flips when there is no room.


anchor? ​

ts
optional anchor?: Rect;

Defined in: src/react/Tooltip.tsx:13

Or beside an element: its screen rect (getBoundingClientRect()). Wins over x/y.


children ​

ts
children: ReactNode;

Defined in: src/react/Tooltip.tsx:18


className? ​

ts
optional className?: string;

Defined in: src/react/Tooltip.tsx:17


side? ​

ts
optional side?: TipSide;

Defined in: src/react/Tooltip.tsx:16


x? ​

ts
optional x?: number;

Defined in: src/react/Tooltip.tsx:10

By the cursor: its screen position.


y? ​

ts
optional y?: number;

Defined in: src/react/Tooltip.tsx:11

Released under the MIT License.