@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.
34 lines (33 loc) • 1.04 kB
TypeScript
import React from 'react';
import PropTypes from 'prop-types';
export interface NavStepProps {
title?: React.ReactNode;
className?: string;
style?: React.CSSProperties;
index?: number;
active?: boolean;
total?: number;
prefixCls?: string;
onChange?: () => void;
onClick?: React.MouseEventHandler<HTMLDivElement>;
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
"role"?: React.AriaRole;
"aria-label"?: React.AriaAttributes["aria-label"];
}
declare const NavStep: {
(props: NavStepProps): React.JSX.Element;
propTypes: {
prefixCls: PropTypes.Requireable<string>;
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
className: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
onClick: PropTypes.Requireable<(...args: any[]) => any>;
active: PropTypes.Requireable<boolean>;
};
defaultProps: {
prefixCls: string;
active: boolean;
className: string;
};
};
export default NavStep;