Skip to content

Custom submit button component for SearchField #225

Description

@ScyDev

In the code of SearchField.js I see this:

  /**
   * The component to use for the submit button.
   */
  SubmitButtonComponent: _propTypes["default"].elementType,

Does this mean we can pass our own custom component to be used for the submit button?

I tried this, but didn't work:

          <SearchHeader>
            <SearchField onChange={value => updateSearchTerm(value)} value={query} SubmitButtonComponent={CustomSearchButton} >
          </SearchHeader>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions