Skip to content

Commit 7b033f0

Browse files
Update TooltipControllerTypes.d.ts
Allow JSX.Element in tooltip content and html props - Update ITooltipController interface - content and html props now accept string | JSX.Element - Improves flexibility for adding React elements in TypeScript
1 parent d23da63 commit 7b033f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/components/TooltipController/TooltipControllerTypes.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import type {
1717
export interface ITooltipController {
1818
className?: string
1919
classNameArrow?: string
20-
content?: string
20+
content?: string | JSX.Element
2121
/**
2222
* @deprecated Use `children` or `render` instead
2323
*/
24-
html?: string
24+
html?: string | JSX.Element
2525
render?: (render: { content: string | null; activeAnchor: HTMLElement | null }) => ChildrenType
2626
place?: PlacesType
2727
offset?: number

0 commit comments

Comments
 (0)