@carbon/ibm-products
Version:
Carbon for IBM Products
29 lines (28 loc) • 794 B
TypeScript
/**
* Copyright IBM Corp. 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { PopoverAlignment } from '@carbon/react';
import { ButtonProps } from '@carbon/react';
interface CoachmarkContextType {
buttonProps: ButtonProps<React.ElementType>;
closeButtonProps: {
onClick: () => void;
};
targetRect?: DOMRect;
targetOffset?: {
x: number;
y: number;
};
align?: PopoverAlignment;
positionTune?: {
x: number;
y: number;
};
isOpen: boolean;
}
export declare const CoachmarkContext: import("react").Context<CoachmarkContextType | null>;
export declare const useCoachmark: () => CoachmarkContextType | null;
export {};