How to add Lightning Web Components to Lightning Tabs?

351    Asked by darsh_6738 in Salesforce , Asked on May 23, 2023

I am trying to figure out how to add a Lightning Web Component to a Lightning tab. I have it on the Home Page, but I would like it to be on its own tab. I feel like there should be an option to expose it to the Lightning tabs. When I am in the Tabs section, I don't see my LWC listed.

Answered by Dipesh Bhardwaj

With the Winter 20 release, we can create the Lightning Tabs using the LWC component. You will just have to add the below tag in the -meta.xml file of the LWC component.

  lightning__Tab


Your Answer

Interviews

Parent Categories