UNPKG

443 BJavaScriptView Raw
1import classNames from 'classnames';
2import React from 'react';
3
4const defaultProps = {
5 clsPrefix: 'u-input-group-addon'
6}
7
8class InputGroupAddon extends React.Component {
9 render() {
10 const { className,clsPrefix, ...others } = this.props;
11
12 return (
13 <span
14 {...others}
15 className={classNames(className, clsPrefix)}
16 />
17 );
18 }
19}
20InputGroupAddon.defaultProps = defaultProps;
21export default InputGroupAddon;
\No newline at end of file