react-slick
react-slick copied to clipboard
Arrows and dots are not showing properly
Following the guide on https://github.com/akiran/react-slick
npm install react-slick --save
npm install slick-carousel
@import "~slick-carousel/slick/slick.css";
@import "~slick-carousel/slick/slick-theme.css";
import React from "react";
import Slider from "react-slick";
class SimpleSlider extends React.Component {
render() {
var settings = {
dots: true,
infinite: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1
};
return (
<Slider {...settings}>
<div>
<h3>1</h3>
</div>
<div>
<h3>2</h3>
</div>
<div>
<h3>3</h3>
</div>
<div>
<h3>4</h3>
</div>
<div>
<h3>5</h3>
</div>
<div>
<h3>6</h3>
</div>
</Slider>
);
}
}
I'm expected to see
But instead, I see

The arrow is unicode character, not the arrow you provided. The dots are smaller, which are also unicode character. The color on the slides are background color, not from Slick.
What am I missing here?
I think this should work:
import React from "react";
import Slider from "react-slick";
/* add the lines below */
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';
If you're using your custom arrow component and want to use the same arrow as the lib, you should use this: font-family: 'slick';.
same problem :(