# react-css-only-carousel

> A beautifully simple CSS-only React component for a responsive image carousel

Latest version **1.0.3** (published 2020-01-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-css-only-carousel
pnpm add react-css-only-carousel
yarn add react-css-only-carousel
bun add react-css-only-carousel
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-01-23 |
| First published | 2020-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 28.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | brunocrosier |
| Maintainers | bruno_crosier |

## Links

- npm: https://www.npmjs.com/package/react-css-only-carousel
- Repository: https://github.com/brunocrosier/react-css-only-carousel
- Homepage: https://github.com/brunocrosier/react-css-only-carousel#readme
- Issues: https://github.com/brunocrosier/react-css-only-carousel/issues
- npm.io page: https://npm.io/package/react-css-only-carousel

## Recent versions

- 1.0.3 (latest) — 2020-01-23
- 1.0.2 — 2020-01-23
- 1.0.1 — 2020-01-23
- 1.0.0 — 2020-01-23

## README

# react-css-only-carousel

> A beautifully simple CSS-only React component for a responsive image carousel

[![NPM](https://img.shields.io/npm/v/react-css-only-carousel.svg)](https://www.npmjs.com/package/react-css-only-carousel)

## Install

```bash
npm install --save react-css-only-carousel
```

## Usage

```javascript
import React from "react"

import Carousel from "react-css-only-carousel"

const Example = () => {
  return (
    <Carousel
      images={[
        "https://i.picsum.photos/id/308/500/900.jpg",
        "https://i.picsum.photos/id/301/900/800.jpg",
        "https://i.picsum.photos/id/209/1800/600.jpg",
        "https://i.picsum.photos/id/109/1200/600.jpg",
        "https://i.picsum.photos/id/409/1400/600.jpg"
      ]}
      slideHeight="500px" // @optional @default = "300px"
      gapBetweenSlides="0px" // @optional @default = "50px"
      arrowsColor="rgba(0,0,255,0.3)" // @optional @default = "rgba(255,255,255,0.4)"
      hideArrows={false} // @optional @default = false
      scrollBarHeight="15px" // @optional @default = "10px"
      scrollBarTrackColor="rgba(0,0,0,0.1)" // @optional @default = "transparent"
      scrollBarThumbColor="orange" // @optional @default = "rgba(0,0,0,0.
      scrollBarBorderRadius="10px" // @optional (does not work on Firefox) @default = "10px"
    />
  )
}
```

## Demo

[Live Example](https://d3nyw.csb.app)

## License

MIT © [brunocrosier](https://github.com/brunocrosier)

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