# material-carousel

> Carousel component

Latest version **0.0.2** (published 2018-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install material-carousel
pnpm add material-carousel
yarn add material-carousel
bun add material-carousel
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-04-16 |
| First published | 2018-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 34.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yhhcg |
| Maintainers | yhhcg |

## Links

- npm: https://www.npmjs.com/package/material-carousel
- Repository: https://github.com/yhhcg/material-carousel
- Homepage: https://github.com/yhhcg/material-carousel#readme
- Issues: https://github.com/yhhcg/material-carousel/issues
- npm.io page: https://npm.io/package/material-carousel

## Recent versions

- 0.0.2 (latest) — 2018-04-16
- 0.0.1 — 2018-04-16

## README

## material-carousel

The component does not depend on any projects.

#### Install
``` sh
npm install --save material-carousel
```
###### Then use it.
``` js
import Carousel from 'material-carousel';
<Carousel data={data} />
```

#### Config Options
|Name|Type|Default|Required|Description|
|:--:|:--:|:-----:|:--:|:----------|
|classes|Object| |N|Useful to extend the style applied to components|
|data|Array|[]|Y|Data|
|data.url|String||Y|Image url|
|direction|String|'rtl'|N|Roll direction|
|isAutoPlay|Boolean|true|N|Whether to play automatically|
|interval|Number|4000|N|Delay between roll (in ms)|
|onClick|Function||N|Gives two arguments. Clicked image data and clicked image index |

#### CSS API
You can override all the class names injected by Material-carousel thanks to the classes property. This property accepts the following keys:
- root
- carouselGroup
- carouselItem
- dots
- dot
- active

---
_Source: https://npm.io/package/material-carousel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
