Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

askd/dotnav

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotnav

React component with dots and arrows, designed to navigate any of the sliders and galleries.

Usage

<Dotnav
  index={index}
  count={count}
  withArrows
/>

Styles

If you use CSS Modules you can import styles and pass them as property:

import classes from 'dotnav/lib/Dotnav.css';

<Dotnav
  index={index}
  count={count}
  withArrows
  classes={classes}
/>

Or you can concat static styles from the package: 'dotnav/lib/styles.css'

Installation

npm install dotnav

Properties

Property Required Type Default Value Available Values Description
index true number 0 From 0 to count - 1 Current active dot
count true number 0 Any number The number of points
withArrows false bool false true, false Whether arrows are visible or not
handleChange true func Callback
classes false shape { root: 'dotnav', dots: 'dotnav-dots', dot: 'dotnav-dot', dotActive: 'dotnav-dot Dotnav-dot_active', arrowPrev: 'dotnav-arrow Dotnav-arrow_prev', arrowNext: 'dotnav-arrow Dotnav-arrow_next' } Classnames for elements

Idea

Dotnav specially crafted for Animakit. See https://animakit.github.io for more details.

Sponsored by Evil Martians

About

Dots navigation for React Components

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.