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