0.0.13 • Published 8 months ago

react-i-slider v0.0.13

Weekly downloads
1
License
ISC
Repository
github
Last release
8 months ago

react-i-slider

Installation

$ npm install react-i-slider --save

Usage

<ReactISlider maxSlides={1} moveSlides={1} infinite={true} overflow={false} auto={true}>
    <img src="https://picsum.photos/id/1018/200/300" alt="" />
    <img src="https://picsum.photos/id/1043/200/300" alt="" />
</ReactISlider>

Options

{
    activeSlide?: number;
    ariaLabel?: string;
    arrows?: boolean;
    auto?: boolean | number;
    axis?: 'horizontal' | 'vertical';
    className?: string;
    enableMouseSwipe?: boolean;
    id?: string;
    infinite?: boolean;
    maxSlides?: number;
    moveSlides?: number;
    next?: string | ReactNode;
    onSlideChange?: Function;
    overflow?: boolean;
    pager?: boolean;
    prev?: string | ReactNode;
    renderPager?: Function;
    renderSlideAriaLabel?: () => string;
    style?: object;
    swipeThreshold?: number;
    transitionDuration?: number;
}

Methods

{
    goToPrev: () => void;
    goToNext: () => void;
    setSlide: (activeSlide: number, cb?: Function) => void;
    offsetSlide: (offset: any, cb?: Function) => void;
}
0.0.13

8 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.9

1 year ago

0.0.8

2 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago