@kwiz/fluentui
Version:
KWIZ common controls for FluentUI
14 lines (13 loc) • 493 B
TypeScript
/** returns a function you can call to make an element glow momentarily */
export declare function useHighlight(): {
highlight: (e: HTMLElement, options?: {
/** highlight text or the box */
type: "text" | "box";
/** delay in (seconds, default: 1) */
delayIn?: number;
/** delay out (seconds, default: 2) */
delayOut?: number;
/** optional highlight color - default: success */
intent?: "success" | "warn";
}) => void;
};