ant-design/components/input/Group.jsx

21 lines
452 B
React
Raw Normal View History

2016-03-31 17:46:35 +08:00
import React from 'react';
import classNames from 'classnames';
export default class Group extends React.Component {
static propTypes = {
children: React.PropTypes.any,
}
render() {
const className = classNames({
'ant-input-group': true,
[this.props.className]: !!this.props.className,
});
return (
<span className={className} style={this.props.style}>
{this.props.children}
</span>
);
}
}