@sv-use/core
Version:
A collection of Svelte 5 utilities.
14 lines (13 loc) • 523 B
TypeScript
import type { CleanupFunction, MaybeGetter } from '../__internal__/types.js';
type GetScrollbarWidthReturn = {
readonly x: number;
readonly y: number;
cleanup: CleanupFunction;
};
/**
* Gets the scrollbar width of an element.
* @param element The element on which to get the scrollbar width from.
* @see https://svelte-librarian.github.io/sv-use/core/get-scrollbar-width
*/
export declare function getScrollbarWidth(element: MaybeGetter<HTMLElement | null | undefined>): GetScrollbarWidthReturn;
export {};