cdbreact
Version:
Elegant UI kit and reusable components for building mobile-first, responsive websites and web apps
31 lines (30 loc) • 983 B
TypeScript
import React, { MouseEventHandler } from "react";
import PropTypes from "prop-types";
interface Props {
active: boolean;
alt: string;
children: React.ReactNode;
className: string;
img: string;
onClick: MouseEventHandler<HTMLElement>;
}
declare const CarouselIndicator: {
(props: Props): React.JSX.Element;
propTypes: {
active: PropTypes.Validator<boolean>;
alt: PropTypes.Requireable<string>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
className: PropTypes.Requireable<string>;
img: PropTypes.Requireable<string>;
onClick: PropTypes.Requireable<(...args: any[]) => any>;
};
defaultProps: {
alt: string;
className: string;
img: string;
onClick: (event: React.MouseEvent<HTMLInputElement>) => void;
children: any;
};
};
export default CarouselIndicator;
export { CarouselIndicator as CDBCarouselIndicator };