Skip to content

Commit ab14763

Browse files
feat: allow ReactNode as content for flexible tooltips (text, icons, rich formatting)
1 parent 90867dd commit ab14763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as Tooltip from "@radix-ui/react-tooltip";
22
import { ReactNode } from "react";
33

44
interface TooltipWrapperProps {
5-
content: string; // o texto que vai aparecer no tooltip
5+
content: ReactNode; // o texto que vai aparecer no tooltip
66
children: ReactNode; // o trigger (qualquer elemento)
77
side?: "top" | "right" | "bottom" | "left"; // posição opcional
88
}

0 commit comments

Comments
 (0)