diff --git a/packages/apsara-ui/src/Tooltip/Tooltip.tsx b/packages/apsara-ui/src/Tooltip/Tooltip.tsx index 918779d3..95480e55 100644 --- a/packages/apsara-ui/src/Tooltip/Tooltip.tsx +++ b/packages/apsara-ui/src/Tooltip/Tooltip.tsx @@ -10,6 +10,7 @@ export type TooltipProps = { title?: React.ReactNode | RenderFunction | string; placement?: TooltipPlacement; style?: React.CSSProperties; + defaultOpen?: boolean; } & HTMLAttributes; const Tooltip = ({ @@ -17,11 +18,12 @@ const Tooltip = ({ placement = "right", style = { backgroundColor: "#333", color: "white" }, children, + defaultOpen = false, ...props }: TooltipProps) => { return ( - + {children}