@trunghtdev/flickity-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

flickity-react

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save flickity-react

Usage

import React from 'react'

import Slider from 'flickity-react'
import 'flickity/dist/flickity.min.css';

const App = () => {
  return (
    <Slider
  options={{
    prevNextButtons: false,
    pageDots: false,
    draggable: true,
    cellAlign: 'left'
  }}
  >
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
    <div style={{ height: 200, width: 200, marginLeft: 10, backgroundColor: 'red' }}></div>
  </Slider>
  )
}

License

MIT ©

Readme

Keywords

none

Package Sidebar

Install

npm i @trunghtdev/flickity-react

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

6 MB

Total Files

9

Last publish

Collaborators

  • trunghtdev