Open radiant0922 opened 2 months ago
ํ๋๋ react-slick dot ๊ฐ์ ๊ฒฝ์ฐ ๋ฐ๋ก ์ง์ ํ๋๋ฒ์ด ์์ด์ gobla.css๋ก ์์ ์ ํ์ จ๋ค๊ณ ํ์ ์ react-slick docs API์ ๋์์๋๋ฐ๋ก ์ ๊ฐ ์ง๋ดค๋๋ฐ ์ฐธ๊ณ ํด์ ์ฌ์ฉํ์๋ฉด ๋ ๊ฒ ๊ฐ์์
<Slider
ref={(slider) => {
sliderRef.current = slider;
}}
{...setting}
dots={true}
arrows={false}
appendDots={(dots: any[]) => {
console.log(dots);
return (
<>
<ul className="flex items-center justify-center gap-2">
{dots.map((item, index) => {
return (
<li key={index} className={`group ${item.props.className}`}>
{item.props.children}
</li>
);
})}
</ul>
</>
);
}}
dotsClass=""
customPaging={() => (
<button className="size-3 rounded-full bg-slate-500 group-[.slick-active]:bg-black"></button>
)}
>
๋ณด์๊ณ ์ดํด ์๋๋๊ฒ ์์ผ์๋ฉด ๋์ค์ฝ๋๋ ๊ตฌ๊ธ ๋ฏธํธ ์ฃผ์ธ์ฉ
์ด๋ค๊ฒ์ ์์ ํ์๋์?
์์ ์์ธ ๋ด์ฉ