1 GitHub star = 1 new component.

Star the repo
Navigationdotsslidercarousel

Dot Slide Indicators

Dot pagination bullets for slide carousels and multi-step flows.

Live Preview

Usage

Copy and paste this code into your React component:

tsx
import { DotNavigationSlider } from 'react-component-kit-ui/navigation';

<DotNavigationSlider>Content</DotNavigationSlider>

Manual Installation

If you are not using the npm package, create a new file and paste the following code: src/components/DotNavigationSlider.tsx + DotNavigationSlider.css:

DotNavigationSlider.tsx
'use client';

import './DotNavigationSlider.css';

/** DotNavigationSlider โ€” ported from astro-component-kit. */
export interface DotNavigationSliderProps {
}

export function DotNavigationSlider({}: DotNavigationSliderProps) {
  return (
    <>
      <div className="dot-nav" data-rk-4601d6="">
        <button className="active" data-rk-4601d6=""></button>
        <button data-rk-4601d6=""></button>
        <button data-rk-4601d6=""></button>
        <button data-rk-4601d6=""></button>
      </div>
    </>
  );
}

export default DotNavigationSlider;
DotNavigationSlider.css
/* DotNavigationSlider โ€” ported from astro-component-kit (navigation/DotNavigationSlider.astro) */

.dot-nav:where([data-rk-4601d6]) { display: flex; gap: 10px; justify-content: center; }
.dot-nav:where([data-rk-4601d6]) button:where([data-rk-4601d6]) { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.2); cursor: pointer; transition: 0.3s; }
.dot-nav:where([data-rk-4601d6]) button.active:where([data-rk-4601d6]) { width: 24px; border-radius: 5px; background: #6366f1; }

Quick Info

Category
Navigation
Filename
DotNavigationSlider.tsx
Dependencies
None โ€” pure React + CSS
Tags
dotsslidercarousel