@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
24 lines (23 loc) • 1.11 kB
TypeScript
import React, { ReactNode } from "react";
import PropTypes from 'prop-types';
import { CarouselIndicatorProps } from "./interface";
declare class CarouselIndicator extends React.PureComponent<CarouselIndicatorProps> {
static propTypes: {
activeKey: PropTypes.Requireable<number>;
className: PropTypes.Requireable<string>;
position: PropTypes.Requireable<"center" | "left" | "right">;
size: PropTypes.Requireable<"small" | "medium">;
style: PropTypes.Requireable<object>;
theme: PropTypes.Requireable<"dark" | "light" | "primary">;
total: PropTypes.Requireable<number>;
onIndicatorChange: PropTypes.Requireable<(...args: any[]) => any>;
type: PropTypes.Requireable<"line" | "dot" | "columnar">;
trigger: PropTypes.Requireable<"hover" | "click">;
};
onIndicatorChange: (activeIndex: number) => void;
handleIndicatorClick: (activeIndex: number) => void;
handleIndicatorHover: (activeIndex: number) => void;
renderIndicatorContent(): ReactNode;
render(): ReactNode;
}
export default CarouselIndicator;