MCPcopy
hub / github.com/FormidableLabs/nuka-carousel / className

Function className

packages/nuka/src/Carousel/PageIndicators.tsx:7–11  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

5 const { totalPages, currentPage, goToPage } = useCarousel();
6
7 const className = (index: number) =>
8 cls(
9 'nuka-page-indicator',
10 currentPage === index ? 'nuka-page-indicator-active' : '',
11 );
12
13 return (
14 <div className="nuka-page-container" data-testid="pageIndicatorContainer">

Callers 1

PageIndicatorsFunction · 0.70

Calls 1

clsFunction · 0.90

Tested by

no test coverage detected