UNPKG

@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.

43 lines (42 loc) 1.29 kB
import React from 'react'; import PropTypes from 'prop-types'; export type Direction = 'horizontal' | 'vertical'; export type Status = 'wait' | 'process' | 'finish' | 'error' | 'warning'; export type Size = 'default' | 'small'; export interface BasicStepsProps { prefixCls?: string; className?: string; direction?: Direction; current?: number; initial?: number; status?: Status; style?: React.CSSProperties; size?: Size; hasLine?: boolean; children?: React.ReactNode; onChange?: (current: number) => void; "aria-label"?: string; } declare const Steps: { (props: BasicStepsProps): React.JSX.Element; propTypes: { prefixCls: PropTypes.Requireable<string>; className: PropTypes.Requireable<string>; style: PropTypes.Requireable<object>; current: PropTypes.Requireable<number>; initial: PropTypes.Requireable<number>; direction: PropTypes.Requireable<string>; status: PropTypes.Requireable<string>; hasLine: PropTypes.Requireable<boolean>; }; defaultProps: { prefixCls: string; current: number; direction: string; size: string; initial: number; hasLine: boolean; status: string; }; }; export default Steps;