import React from 'react'; import RcSteps from 'rc-steps'; export default class Steps extends React.Component { render() { let maxDescriptionWidth = this.props.maxDescriptionWidth; if (this.props.direction === 'vertical') { maxDescriptionWidth = 'auto'; } return ( {this.props.children} ); } } Steps.defaultProps = { prefixCls: 'ant-steps', iconPrefix: 'ant', maxDescriptionWidth: 100, current: 0 }; Steps.Step = RcSteps.Step;