diff --git a/apps/dashboard/src/components/primitives/form/form.tsx b/apps/dashboard/src/components/primitives/form/form.tsx index 9da0b29f8a7..f85d430b9e3 100644 --- a/apps/dashboard/src/components/primitives/form/form.tsx +++ b/apps/dashboard/src/components/primitives/form/form.tsx @@ -9,6 +9,7 @@ import { cva } from 'class-variance-authority'; import { FormFieldContext, FormItemContext, useFormField } from './form-context'; import { RiErrorWarningFill, RiInformationFill } from 'react-icons/ri'; import { BsFillInfoCircleFill } from 'react-icons/bs'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/primitives/tooltip'; const Form = FormProvider; @@ -40,25 +41,28 @@ FormItem.displayName = 'FormItem'; const FormLabel = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef & { optional?: boolean; hint?: string } ->(({ className, optional, hint, children, ...props }, ref) => { + React.ComponentPropsWithoutRef & { optional?: boolean; hint?: string; tooltip?: string } +>(({ className, optional, tooltip, hint, children, ...props }, ref) => { const { formItemId } = useFormField(); return ( -