@codecademy/gamut
72.2.272.2.3-alpha.e0a618.0
dist/Tip/ToolTip/index.d.ts~
dist/Tip/ToolTip/index.d.tsModified+5
Index: package/dist/Tip/ToolTip/index.d.ts
===================================================================
--- package/dist/Tip/ToolTip/index.d.ts
+++ package/dist/Tip/ToolTip/index.d.ts
@@ -2,8 +2,13 @@
import { TipBaseProps, TipCenterAlignment } from '../shared/types';
export type ToolTipProps = TipBaseProps & WithChildrenProp & {
alignment?: TipCenterAlignment;
/**
+ * If true, the tooltip closes immediately when the trigger is clicked or activated via keyboard.
+ * Pass `false` via `tipProps` on IconButton to opt out (e.g. copy → copied patterns).
+ */
+ closeOnClick?: boolean;
+ /**
* Can be used for accessibility - the same id needs to be passed to the `aria-describedby` attribute of the element that the tooltip is describing.
*/
id?: string;
};