# API

# Props

Prop Type Default Description
arrows Boolean false Whether to render arrow buttons. Clicking on the buttons will cause the scroller to scroll in the respective direction by the width of the scroller or as much as it can.
scrollDistance Number NaN Scroll distance for slideForwards and slideBackwards.
If not set, the scroller will try to slid by its width.
scrollOffset Number NaN Offset to be added when calling slideTo, slideForwards or slideBacakwards
scrollDelay Number 60 Debouncing delay of scroll event firing

# Events

Event Parameter
resize object with the following properties:

position: Number

atStart: Boolean

atEnd: Boolean

width: Number
scroll object with the following properties:

position: Number

atStart: Boolean

atEnd: Boolean

width: Number

# Methods

# NNHorizontalScroller

Method Parameters Returns Description
slideForwards Slide forwards by the width of the scroller or as much as it can
slideBackwards Slide backwards by the width of the scroller or as much as it can
slideTo idx: Number Slide to slide at index idx