ant-design/components/input/Group.jsx

19 lines
377 B
React
Raw Normal View History

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