0.0.2 • Published 4 years ago

@cy6eria/react-carousel v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

@cy6eria/react-carousel

The images carousel as a React component.

Installation

npm install @cy6eria/react-carousel

How to use

<Carousel className="carousel" onClose={handleClose}>
  {images.map((i) => <Image key={i} url={i} />)}
</Carousel>
PropertyOptionalTypeDefault valueDescription
classNameYesstring-You can pass some styling through this property. This css classes will be used on the wrapper. You should use this property to set the wrapper sizes up.
onCloseYesfunction-This handler will be called when user hit the close button. If this property is not defined then the close button won't be rendered.
componentsYesobject-This object could be used to rewrite default components.