Overriding a standard search interface

To override a search component and add your own search experience, you will have to implement forceCommunity:searchInterface. The sample code snippet is as follows:

<aura:component implements="forceCommunity:searchInterface" access="global">    <div class="search">        <div class="search">            <form class="search-form">                <div class="search-input">                    <input class="search-input-field" type="text" placeholder="My Search"/>                </div>                <input type="hidden" name="language" value="en" />            </form>        </div>    </div></aura:component>

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.