1.1.8 • Published 2 years ago

swipi v1.1.8

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

Swipi

NPM version bundle size

Installation

npm

$ npm install swipi

yarn

$ yarn add swipi

Usage

import Swipi from 'swipi'

const styles = { height: '250px', backgroundColor: '#dadada' }

export const App = () => (
  <Swipi
    loop
    showDots
    spaceBetweenSlides={15}
  >
    <div style={styles} />
    <div style={styles} />
    <div style={styles} />
    <div style={styles} />
    <div style={styles} />
  </Swipi>
)

🔥 View more examples and create a custom slider

Browsers support

IE / EdgeFirefoxChromeSafariOpera
IE11, Edgelast 3 versionslast 3 versionslast 3 versionslast 3 versions

Props

💅 Styling

.swipi-wrapper - styles the container that wraps the slider with dots

.swipi-container - styles the container that wraps slides with arrows

.dots-wrapper - styles the container that wraps the dots

.left-button - styles the left button that gets the user to the previous slide

.right-button - styles the right button that gets the user to the next slide
1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago