0.0.2 • Published 4 months ago

sliderfy v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

npm version Bundle size BEM Methodology Downloads License

Sliderfy Preview

Sliderfy

A lightweight, simple, and customizable React slider.

Props

NameTypeDefaultDescription
sliderfyClassNamestring"sliderfy"Class name for the slider container.
childrenJSX.Element or JSX.Element[]-Slide elements (single or array).
slidesPerViewnumber1Number of slides per view.
slidesPerGroupnumber1Number of slides to move at a time.
spaceBetweennumber0Distance between slides in px.
allowTouchMovebooleantrueEnable touch swipe.
autoplayobjectnullAutoplay settings.
autoplay.delaynumber0Delay in milliseconds for autoplay.
autoplay.reverseDirectionbooleanfalseReverse autoplay direction.
verticalbooleanfalseSet to true for vertical slider.
renderDotnull or functionnullFunction to render custom navigation dots.

Example

npm i sliderfy

React

Code

CSS

Code

Result

Code