UNPKG

@web3r/flowerkit

Version:

Tree-shakable JavaScript and TypeScript utility library for frontend/browser apps: DOM, events, arrays, objects, strings, date, JSON, and network helpers (ESM/CJS, SSR-friendly).

12 lines (11 loc) 428 B
export type TGetScrollbarWidthArgs = Parameters<typeof getScrollbarWidth>; export type TGetScrollbarWidthReturn = ReturnType<typeof getScrollbarWidth>; /** * Computes the width of the browser's scrollbar in pixels. * * @returns {number} Scrollbar width in pixels * @example * const scrollbarWidth = getScrollbarWidth(); * console.log(scrollbarWidth); // => number */ export declare const getScrollbarWidth: () => number;