diff --git a/package.json b/package.json index 7d53bac..93e42c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@risc0/ui", - "version": "0.0.44", + "version": "0.0.45", "sideEffects": false, "type": "module", "scripts": { diff --git a/tooltip.tsx b/tooltip.tsx index 4b7e487..795bdb4 100644 --- a/tooltip.tsx +++ b/tooltip.tsx @@ -6,23 +6,35 @@ import { cn } from "./cn"; const TooltipContent = forwardRef< ElementRef, - ComponentPropsWithoutRef ->(({ className, sideOffset = 4, ...rest }, ref) => ( + ComponentPropsWithoutRef & { + // any other prop goes here + disableAnimation?: boolean; + } +>(({ className, sideOffset = 4, disableAnimation = false, ...rest }, ref) => ( )); +const TooltipArrow = forwardRef< + ElementRef, + ComponentPropsWithoutRef +>(({ className, ...rest }, ref) => ( + +)); + TooltipContent.displayName = TooltipPrimitive.Content.displayName; +TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName; const TooltipProvider = TooltipPrimitive.Provider; -const TooltipArrow = TooltipPrimitive.Arrow; const Tooltip = TooltipPrimitive.Root; const TooltipTrigger = TooltipPrimitive.Trigger;