UNPKG

nhb-toolbox

Version:

A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.

18 lines 850 B
/** * * Scrolls smoothly to the given element with an optional vertical offset. * @param element The target element to scroll to. * @param offset Additional vertical offset in pixels (positive moves down, negative moves up). */ export declare function smoothScrollTo(element: HTMLElement, offset?: number): void; /** * * Toggles full-screen mode for a given element (or the `document` by default). * @param element The element to toggle fullscreen mode for (default: document root). */ export declare function toggleFullScreen(element?: HTMLElement): void; /** * * Copies text to the clipboard, falling back to legacy methods if needed. * @param text - The text to copy. * @returns A promise that resolves when the text is copied. */ export declare function copyToClipboard(text: string): Promise<void>; //# sourceMappingURL=utils.d.ts.map