Skip to content

Custom submit button component for SearchField #225

Open
@ScyDev

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>

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