From 729bc9dd774ebb9e894084557835dec0b779fb41 Mon Sep 17 00:00:00 2001 From: Andres David Jimenez Date: Thu, 20 Jun 2024 21:46:02 -0600 Subject: [PATCH] feat(tooltip): make title from string to ReactNode to accept custom title (#10424) --- packages/ui/src/primitives/tailwind/Tooltip/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/primitives/tailwind/Tooltip/index.tsx b/packages/ui/src/primitives/tailwind/Tooltip/index.tsx index bafe10bbf2..74fe595df2 100644 --- a/packages/ui/src/primitives/tailwind/Tooltip/index.tsx +++ b/packages/ui/src/primitives/tailwind/Tooltip/index.tsx @@ -23,11 +23,11 @@ All portions of the code written by the Ethereal Engine team are Copyright © 20 Ethereal Engine. All Rights Reserved. */ -import React from 'react' +import React, { ReactNode } from 'react' import { twMerge } from 'tailwind-merge' interface TooltipProps { - title: string + title: ReactNode direction?: 'top' | 'bottom' | 'left' | 'right' children: React.ReactElement className?: string