-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Hey @react-slick
"dependencies": {
"next": "16.0.1",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-slick": "^0.31.0",
"slick-carousel": "^1.8.1"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/react-slick": "^0.23.13",
"eslint": "^9",
"eslint-config-next": "16.0.1",
"tailwindcss": "^4",
"typescript": "^5"
}
this is my package json dependencies and devDependencies
'use client';
import Slider from 'react-slick';
import 'slick-carousel/slick/slick.css';
export default function Home() {
var settings = {
dots: true,
infinite: false,
speed: 500,
slidesToShow: 4,
slidesToScroll: 4,
initialSlide: 0,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
infinite: true,
dots: true,
},
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
initialSlide: 2,
},
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
},
},
],
};
return (
<Slider {...settings}>
1
2
3
4
5
6
7
8
);
}
this is sample slider which i copied from documentation
issue is breakpoint settings are not woking in responsive