mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
21 lines
452 B
React
21 lines
452 B
React
|
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>
|
||
|
);
|
||
|
}
|
||
|
}
|