1.0.2 • Published 4 years ago

sliderko v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

sliderko

NPM JavaScript Style Guide

A React horizontal slider with swipe gesture on both PC and mobile devices. To use it, just wrap your content into the component.

npm.io

Common instructions

Install

npm install --save sliderko

Usage

import React, { Component } from 'react'
import Sliderko from 'sliderko'

class Example extends Component {
  render () {
    return (
      <Sliderko>
        <div style={{ display: "inline-block", width: 250, margin: 15, padding: 50, border: '1px solid gray', borderRadius: 10 }}>Item test</div>
        <div style={{ display: "inline-block", width: 250, margin: 15, padding: 50, border: '1px solid gray', borderRadius: 10 }}>Item test</div>
        <div style={{ display: "inline-block", width: 250, margin: 15, padding: 50, border: '1px solid gray', borderRadius: 10 }}>Item test</div>
        <div style={{ display: "inline-block", width: 250, margin: 15, padding: 50, border: '1px solid gray', borderRadius: 10 }}>Item test</div>
      </Sliderko>
    )
  }
}

License

MIT © rarokko