MCPcopy Index your code
hub / github.com/akiran/react-slick

github.com/akiran/react-slick @0.31.0 sqlite

repository ↗ · DeepWiki ↗ · release 0.31.0 ↗
151 symbols 443 edges 80 files 0 documented · 0% 5 cross-repo links
README

react-slick

Backers on Open Collective Sponsors on Open Collective

Carousel component built with React. It is a react port of slick carousel

Documentation

Installation

npm

npm install react-slick --save

yarn

yarn add react-slick

Also install slick-carousel for css and font

npm install slick-carousel

// Import css files
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

or add cdn link in your html

<link
  rel="stylesheet"
  type="text/css"
  charset="UTF-8"
  href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css"
/>
<link
  rel="stylesheet"
  type="text/css"
  href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css"
/>

PlayGround

Example

import React from "react";
import Slider from "react-slick";

export default function SimpleSlider() {
  var settings = {
    dots: true,
    infinite: true,
    speed: 500,
    slidesToShow: 1,
    slidesToScroll: 1
  };
  return (
    <Slider {...settings}>



        <h3>1</h3>






        <h3>2</h3>






        <h3>3</h3>






        <h3>4</h3>






        <h3>5</h3>






        <h3>6</h3>



    </Slider>
  );
}

Props

For all available props, go here.

Methods

For all available methods, go here

Development

Want to run demos locally

git clone https://github.com/akiran/react-slick
cd react-slick
npm install
npm start
open http://localhost:8080

Community

Join our discord channel to discuss react-slick bugs and ask for help

Contributing

Please see the contributing guidelines

Core symbols most depended-on inside this repo

clickNext
called by 16
test-utils.js
getCurrentSlide
called by 13
test-utils.js
getActiveSlide
called by 13
test-utils.js
getActiveSlides
called by 12
test-utils.js
getActiveSlidesCount
called by 9
test-utils.js
getPreClones
called by 9
src/utils/innerSliderUtils.js
getActiveSlidesText
called by 8
test-utils.js
clickPrevious
called by 7
test-utils.js

Shape

Function 122
Class 15
Method 14

Languages

TypeScript100%

Modules by API surface

src/utils/innerSliderUtils.js35 symbols
test-utils.js18 symbols
__tests__/testUtils.js11 symbols
src/track.js7 symbols
src/slider.js6 symbols
src/inner-slider.js6 symbols
src/dots.js5 symbols
docs/scripts/generateExampleConfigs.js5 symbols
__tests__/beforeChange.test.js5 symbols
__tests__/afterChange.test.js5 symbols
examples/CustomArrows.js3 symbols
docs/docs.js3 symbols

Dependencies from manifests, versioned

@babel/cli7.0.0 · 1×
@babel/core7.16.0 · 1×
@babel/eslint-parser7.16.3 · 1×
@babel/plugin-proposal-class-properties7.1.0 · 1×
@babel/polyfill7.0.0 · 1×
@babel/preset-env7.1.0 · 1×
@babel/preset-react7.0.0 · 1×
@playwright/experimental-ct-react1.49.1 · 1×
@testing-library/react16.1.0 · 1×
@testing-library/user-event14.3.0 · 1×
@types/node22.10.2 · 1×

For agents

$ claude mcp add react-slick \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact