1.0.1 • Published 7 years ago

react-nanocarousel v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

react-nanocarousel Build Status

A swipeable carousel in as few bytes as possible, React or Preact first-class citizen. Server side renderable. 1.6kb including styles.

Install

$ npm install --save react-nanocarousel

Usage

All styling is done via inline styles.

To override default styles, pass style objects or classNames to the props, imageContainerProps, or imageProps.

To override the inline styles with classes, be sure to use !important.

Preact users, use react-nanocarousel/preact.

var Nanocarousel = require('react-nanocarousel')

function render () {
  return <Nanocarousel images={['a.jpg', 'b.jpg']}
                       onChange={(index) => {}}
                       className='container'
                       imageContainerProps={ {style: {backgroundColor: 'red'}} }
                       imageProps={ {className: 'an-image'} } />
}

License

MIT © Andrew Joslin

1.0.1

7 years ago

1.0.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago