[![NPM version]](https://www.npmjs.com/package/image-show-react)
npm install image-show-react[![NPM version]](https://www.npmjs.com/package/image-show-react)
A simple and customizable image carousel component library for React.
- Easy to use and integrate.
- Fully customizable.
- Supports automatic slide transitions.
You can install the package using npm or yarn:
``bash
npm install react-image-carousel
or
yarn add react-image-carousel
`
Here's a basic example of how to use the ImageCarousel component in your React project:
`bash
import React from 'react';
import ImageCarousel from 'react-image-carousel';
import 'react-image-carousel/dist/index.css';
`
`bash
const images = [
'https://via.placeholder.com/800x300',
'https://via.placeholder.com/800x300',
'https://via.placeholder.com/800x300',
];
const App = () => {
return (
export default App;
`
| Name | Type | Default | Description |
| :---------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| images | Array | [] | Array of images |number
| itemWidth | | '' | Image Width |number
| itemHeight | | false | Image Height |string
| animation | | default | Image Slide Animation |boolean
| autoPlay | | false | Auto playing of Images |boolean
| loop | | true | Loop over the Images |style
| dotStyle | | {} | Nav Dot Style |style
| navDotsContainerStyle | | {} | Nav Dot Container Style |string
| imageContainerStyle | | {} | Image Container Style Prop |style
| imagePropsStyle | | {} | Each image Style Prop |style
| buttonContainerStyle | | {} | Previous & Next Button Container Style Prop |style
| leftButtonStyle | | {} | Previous Button Style Prop |style
| rightButtonStyle | | {} | Next Button Style Prop |function
| onImageLoad | | null | A Callback called after Image Load |function
| onLeftBtnPress | | null | A Callback on Left Button Press |function
| onRightBtnPress | | null | A Callback on Right Button Press. |number
| autoPlayDuration | | 5000 | Auto Play animation Duration in ms |number
| fadeInEffectDuration | | 3000 | Fade In Animation Duration in ms |number
| activeNavDotWidth | | 10 | Active Nav Dot Width |number
| nonActiveNavDotWidth | | 5 | Non Active Nav Dot Width |string
| activeNavDotColor | | #ffff | Active Nav Dot Color |string
| nonActiveNavDotColor | | grey | Non Active Nav Dot Color |style
| imageCarouselContainerStyle | | {} | Image Carousel Container Style boolean
| showVerticalScrollBar | | true` | Show Scroll Bar