UNPKG

@carbon/ibm-products

Version:

Carbon for IBM Products

45 lines (44 loc) 1.34 kB
/** * Copyright IBM Corp. 2023, 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 React from 'react'; interface CoachmarkDragbarProps { /** * Handler to manage keyboard interactions with the dragbar. */ a11yKeyboardHandler: (event: React.KeyboardEvent<HTMLButtonElement>) => void; /** * Tooltip text and aria label for the Close button icon. */ closeIconDescription?: string; /** * Function to call when the close button is clicked. */ onClose?: () => void; /** * Function to call when the user clicks and drags the Coachmark. * For internal use only by the parent CoachmarkOverlay. */ onDrag?: (movementX: number, movementY: number) => void; /** * Show/hide the "X" close button. */ showCloseButton?: boolean; /** * Determines the theme of the component. */ theme?: 'light' | 'dark'; /** * Additional props passed to the component. */ [key: string]: any; } /** * DO NOT USE. This component is for the exclusive use * of other Onboarding components. */ export declare let CoachmarkDragbar: React.ForwardRefExoticComponent<Omit<CoachmarkDragbarProps, "ref"> & React.RefAttributes<HTMLElement>>; export {};