Wednesday, August 21, 2019

How to add Lightning Web Components as Custom Tabs in Salesforce

Form Winter '20 onwards you can add the Lightning Web Component as Custom Tab in Salesforce.

The <component>.js-meta.xml configuration file defines the metadata values for the component.
Add the lightning__Tab target to the component’s configuration file.

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="" fqn="CustomSearchInLWC">

From Setup, enter Tabs in the Quick Find box, and then click on New button in Lightning Components Tabs

 Then Select your LWC component.


1 comment: