2016-03-31 17:46:35 +08:00
|
|
|
import React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
|
2016-04-13 17:38:53 +08:00
|
|
|
export default function Group(props) {
|
|
|
|
const className = classNames({
|
|
|
|
'ant-input-group': true,
|
2016-05-18 11:41:57 +08:00
|
|
|
'ant-input-group-lg': props.size === 'large',
|
|
|
|
'ant-input-group-sm': props.size === 'small',
|
2016-04-13 17:38:53 +08:00
|
|
|
[props.className]: !!props.className,
|
|
|
|
});
|
|
|
|
return (
|
|
|
|
<span className={className} style={props.style}>
|
|
|
|
{props.children}
|
|
|
|
</span>
|
|
|
|
);
|
2016-03-31 17:46:35 +08:00
|
|
|
}
|
2016-04-13 17:38:53 +08:00
|
|
|
|
|
|
|
Group.propTypes = {
|
|
|
|
children: React.PropTypes.any,
|
|
|
|
};
|