ant-design/components/input/Group.tsx

21 lines
482 B
TypeScript
Raw Normal View History

2016-07-07 20:25:03 +08:00
import * as React from 'react';
2016-03-31 17:46:35 +08:00
import classNames from 'classnames';
export default function Group(props) {
const className = classNames({
'ant-input-group': true,
'ant-input-group-lg': props.size === 'large',
'ant-input-group-sm': props.size === 'small',
[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,
};