Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import React from 'react'
import {
  defaultRenderWrapper,
  defaultRenderSearchInputBox,
} from './renderProps'
import { SearchInputProps } from './typings'

class SearchInput extends React.PureComponent<SearchInputProps> {
  static defaultProps = {
    className: '',
    // renderProps
    renderWrapper: defaultRenderWrapper,
  }
  render() {
    const { renderWrapper, ...remainingProps } = this.props
    const children = defaultRenderSearchInputBox(remainingProps)
    const view = renderWrapper({ children, ...remainingProps })
    return view
  }
}

export { SearchInput }
export default SearchInput