@cy6eria/react-carousel
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@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>
Property Optional Type Default value Description
className Yes string - 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.
onClose Yes function - 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.
components Yes object - This object could be used to rewrite default components.

Readme

Keywords

Package Sidebar

Install

npm i @cy6eria/react-carousel

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

1.87 MB

Total Files

61

Last publish

Collaborators

  • cy6eria