1.2.4 • Published 3 years ago

@juddroid_raccoon/react-slider v1.2.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

react-slider 🐾

Awesome and Adorable slider for lists with React

Apr-30-2021 03-11-48

Installation 🚀

Using npm :

npm i @juddroid_raccoon/react-slider

Usage 🏝

import RaccoonSlider from './lib/raccoonSlider/RaccoonSlider';

function App() {
  // const data = [
  //   { data: '1' },
  //   { data: '2' },
  //   { data: '3' },
  //   { data: '4' },
  //   { data: '5' },
  //   { data: '6' },
  //   { data: '7' },
  //   { data: '8' },
  //   { data: '9' },
  //   { data: '10' },
  //   { data: '11' },
  //   { data: '12' },
  //   { data: '13' },
  //   { data: '14' },
  //   { data: '15' },
  //   { data: '16' },
  //   { data: '17' },
  //   { data: '18' },
  //   { data: '19' },
  // ];

  const data = [
    'https://a0.muscache.com/im/pictures/dd9e507a-ea75-4634-bbdd-77c2ceb9adbf.jpg?im_w=1200',
    'https://a0.muscache.com/im/pictures/b71b2c8d-5ca7-4326-aa59-9811985f7320.jpg?im_w=720',
    'https://a0.muscache.com/im/pictures/934d9bb8-0c34-4a3e-85f5-e7b722855b00.jpg?im_w=720',
    'https://a0.muscache.com/im/pictures/613cf352-4052-4ea3-ac14-8adad0836adb.jpg?im_w=720',
    'https://a0.muscache.com/im/pictures/ff0277b5-2013-4dca-af1d-83ace4ee875a.jpg?im_w=720',
  ];
  const option = {
    cardWidth: 300,
    cardHeight: 200,
    cardMargin: 0,
    displayCardCount: 1,
    dataType: 'img',
    buttonType: 'default',
    buttonSize: 24,
    moveCardCount: 0,
  };

  return <RaccoonSlider option={option} data={data} />;
}

export default App;

Props 🎹

There is no default value yet :)
You need two props!

Data 💾

NameValueDescription
datalista data list included each Object
NameValueDescription
cardWidthnumbereach card size (px)
cardMarginnumbereach card margin (px)
displayCardCountnumbera number of card to be shown
buttonTypestringbutton type (only 'default' now, it will update soon)
buttonSizenumberbutton size
dataTypestringdata type (only 'img' now, it will update soon

Thanks to 😁

Q @somedaycode
DD @jjunyjjuny

Keywords 🍖

react
react-component
react-slider

1.2.4

3 years ago

1.2.3

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago