JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 628
  • Score
    100M100P100Q94488F
  • License MIT

This component provides a pagination method with dots for any amount of images/slides.

Package Exports

  • react-carousel-dots

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-carousel-dots) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

This component provides a pagination method with dots for any amount of images/slides.

Quickstart

npm install --save react-carousel-dots

The minimum amount of code to make it work:

import Dots from 'react-carousel-dots';

<Dots length={10} active={0} />

Props

Name Default value Description
length - Required. The amount of dots you want to use.
active - Required. The index of the currently active dot.
visible 5 Optional. The amount of dots visible on mount.
size 16 Optional. The width and height of a dot.
margin 1 Optional. The right- and left-margin of a dot.
className - Optional. This class will be added to the holder div.