Interface IScrollbarStaticProps

interface IScrollbarStaticProps {
    __staticProp?: null;
    autoHide?: boolean;
    axis?: "x" | "y";
    class?: string | false;
    container?: Window | HTMLElement;
    draggable?: boolean;
    parent?: false | HTMLElement;
    resizeDebounce?: number;
}

Hierarchy (View Summary)

Properties

__staticProp?: null
autoHide?: boolean

Automatically hides the scrollbar when inactive.

true
axis?: "x" | "y"

Defines the scrolling axis for the scrollbar.

  • 'x' for horizontal scrolling.
  • 'y' for vertical scrolling.
'y'
class?: string | false

Custom CSS class to be applied to the scrollbar track. If false, no additional class is applied.

false
container?: Window | HTMLElement

The element to which the scrollbar is applied. Can be either the window or a specific HTML element.

window
draggable?: boolean

Determines whether the scrollbar thumb is draggable.

true
parent?: false | HTMLElement

The parent element where the scrollbar should be appended. If false, the scrollbar is appended directly to the container. For proper behavior, use parent when applying the scrollbar to an HTML element.

false
resizeDebounce?: number

Debounce time (in milliseconds) for handling resize events. Helps improve performance by limiting the frequency of resize calculations.

0