Closed guirdy closed 4 years ago
AutoplaySlider has property called cssModule
. Assuming that you have your .aws-btn
reference in styles.css, try this:
import styles from 'yourPath/styles.css';
const Slider = () => {
return (
<Container>
<AutoplaySlider play={true} cancelOnInteraction={false} interval={3000} cssModule={styles}>
<div data-src={Image1} />
<div data-src={Image2} />
<div data-src={Image3} />
</AutoplaySlider>
</Container>
);
};
How can I apply this style using styled-component ?
My AutoplaySlider: