@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.
50 lines (49 loc) • 1.64 kB
TypeScript
import React from 'react';
import PropTypes from 'prop-types';
export type Status = 'wait' | 'process' | 'finish' | 'error' | 'warning';
export type Size = 'default' | 'small';
export interface BasicStepProps {
description?: React.ReactNode;
icon?: React.ReactNode;
status?: Status;
title?: React.ReactNode;
className?: string;
style?: React.CSSProperties;
active?: boolean;
prefixCls?: string;
stepNumber?: string;
size?: Size;
done?: boolean;
onChange?: () => void;
onClick?: React.MouseEventHandler<HTMLDivElement>;
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
"role"?: React.AriaRole;
"aria-label"?: React.AriaAttributes["aria-label"];
}
export declare enum stepSizeMapIconSize {
small = "large",
default = "extra-large"
}
declare const BasicStep: {
(props: BasicStepProps): React.JSX.Element;
propTypes: {
prefixCls: PropTypes.Requireable<string>;
description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
icon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
status: 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>;
done: PropTypes.Requireable<boolean>;
};
defaultProps: {
prefixCls: string;
active: boolean;
done: boolean;
status: string;
className: string;
};
};
export default BasicStep;