canari-swipe
TypeScript icon, indicating that this package has built-in type declarations

3.3.1 • Public • Published

canari-swipe

100% React-based library used to swipe pages and other content. Multiple exposed properties for customizing the behavior.

Check out these examples!

Installation

$ npm install --save canari-swipe

Basic Usage

import Swiper from 'canari-swipe'

const slideStyle = {
	height: '200px',
	backgroundColor: 'gray',
	display: 'inline-block',
	textAlign: 'center',
	verticalAlign: 'middle',
}

function SimpleSwiper() {
	return (
		<Swiper fit={1} gap={20}>
			{[...Array(5)].map((_, index) => (
				<div key={index} style={slideStyle}>
					Page {index}
				</div>
			))}
		</Swiper>
	)
}

Dependents (0)

Package Sidebar

Install

npm i canari-swipe

Weekly Downloads

51

Version

3.3.1

License

MIT

Unpacked Size

25.1 kB

Total Files

6

Last publish

Collaborators

  • gee-dolla-holla