frc-ui
Version:
React Web UI
10 lines (9 loc) • 385 B
JavaScript
import React from 'react';
import Input from './Input';
import Icon from '../icon';
export default function (props) {
const prop = Object.assign({}, props);
const prefix = React.createElement(Icon, { style: { color: '#8F9598', fontSize: 'inherit' }, type: 'search' });
prop.prefix = props.prefix || prefix;
return React.createElement(Input, Object.assign({}, prop));
}