0

I have a requirement where I need to use custom search LWC in community search component. I was able to achieve using Aura but I could not find option in LWC. Is it supported in LWC ?

Need help.

Thanks, Ashvin

0
1

As of Winter'21 release forceCommunity:searchInterface is not available in LWC

If you see the documentation the View as Lightning Web Component is greyed out.

enter image description here

Though Lightning web components support most of the functionality available in Aura components, there are few exceptions and forceCommunity:searchInterface is one of those.

The blog provides the complete list of unsupported LWCs.

EDIT: As suggested by Phil, LWC can be wrapped in a simple Aura component implementing this interface. See example .This way, most of the functionality can still be achieved using LWC.

2
  • Please update the answer to indicate that an LWC can be wrapped in a simple Aura component implementing this interface so most of the functionality can still be LWC-based. Then I'll upvote it. – Phil W Nov 4 '20 at 13:07
  • Thank you, Phil :) I have mentioned the same and provided an example in the edited comment. – Anutej Nov 4 '20 at 13:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.