Skip to content

artboard-deluxe / scrollbar

scrollbar() ​

const scrollbar: (options) => ArtboardPluginDefinition<{ element: HTMLElement; minThumbSize?: number; orientation: ScrollbarOrientation; restoreStyles?: boolean; thumbElement?: string | HTMLElement; }, object>

Defined in: plugins/scrollbar/index.ts:8

Parameters ​

options ​

element ​

HTMLElement

The element representing the scrollbar.

minThumbSize? ​

number

The minimum size of the thumb.

orientation ​

ScrollbarOrientation

The orientation.

restoreStyles? ​

boolean

Whether to restore the original styles after destroying the plugin instance.

thumbElement? ​

string | HTMLElement

The element or selector representing the scrollbar thumb.

Returns ​

ArtboardPluginDefinition<{ element: HTMLElement; minThumbSize?: number; orientation: ScrollbarOrientation; restoreStyles?: boolean; thumbElement?: string | HTMLElement; }, object>