Next.js template
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Search.js 688B

12345678910111213141516171819202122232425262728293031323334353637
  1. import PropTypes from 'prop-types';
  2. import React from 'react';
  3. import BaseInputField from './BaseInputField';
  4. const Search = ({
  5. field,
  6. form,
  7. label,
  8. placeholder,
  9. disabled,
  10. className,
  11. ...props
  12. }) => (
  13. <BaseInputField
  14. type="text"
  15. label={label}
  16. placeholder={placeholder}
  17. disabled={disabled}
  18. form={form}
  19. field={field}
  20. isSearch
  21. className={className}
  22. {...props}
  23. />
  24. );
  25. Search.propTypes = {
  26. field: PropTypes.shape({}),
  27. form: PropTypes.shape({}),
  28. label: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({})]),
  29. placeholder: PropTypes.string,
  30. disabled: PropTypes.bool,
  31. className: PropTypes.string,
  32. };
  33. export default Search;