Skip to content

Commit

Permalink
Merge pull request #42 from tpinne/feature/basic-styled-components-su…
Browse files Browse the repository at this point in the history
…pport

[Feature] Basic styled components support
  • Loading branch information
yi authored Jul 12, 2019
2 parents cae7f32 + b3cfeba commit 8152a4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ class Carousel extends React.Component<CarouselProps, CarouselInternalState> {
centerMode,
additionalTransfrom,
renderDotsOutside,
className,
} = this.props;
throwError(this.state, this.props);
const {
Expand Down Expand Up @@ -621,7 +622,7 @@ class Carousel extends React.Component<CarouselProps, CarouselInternalState> {
return (
<>
<div
className={`react-multi-carousel-list ${containerClass}`}
className={`react-multi-carousel-list ${containerClass} ${className}`}
ref={this.containerRef}
>
<ul
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface CarouselProps {
sliderClass?: string; // Use this to style your own track list.
itemClass?: string; // Use this to style your own Carousel item. For example add padding-left and padding-right
containerClass?: string; // Use this to style the whole container. For example add padding to allow the "dots" or "arrows" to go to other places without being overflown.
className?: string; // Use this to style the whole container with styled-components
dotListClass?: string; // Use this to style the dot list.
keyBoardControl?: boolean;
centerMode?: boolean; // show previous and next set of items paritially
Expand Down

0 comments on commit 8152a4a

Please sign in to comment.