Skip to content

Commit

Permalink
Add typing to support changes introduced in FormidableLabs#644
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Bissonnette committed Jan 31, 2020
1 parent 7309e9f commit f9e83ef
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@ export interface CarouselProps {
[slideAction in CarouselSlideActions]?: number[];
};

defaultControlsConfig?: {
nextButtonClassName?: string;
nextButtonStyle?: CSSProperties;
nextButtonText?: string;
prevButtonClassName?: string;
prevButtonStyle?: CSSProperties;
prevButtonText?: string;
pagingDotsContainerClassName: string;
pagingDotsClassName?: string;
pagingDotsStyle?: CSSProperties;
};

/**
* Disable slides animation
* @default false
Expand Down Expand Up @@ -302,7 +314,10 @@ export interface CarouselProps {
/**
* Function for rendering aria-live announcement messages
*/
renderAnnounceSlideMessage?: ({ currentSlide, slideCount }: CarouselSlideRenderControlProps) => string;
renderAnnounceSlideMessage?: ({
currentSlide,
slideCount
}: CarouselSlideRenderControlProps) => string;

/**
* Manually set the index of the slide to be shown
Expand Down

0 comments on commit f9e83ef

Please sign in to comment.