Skip to content

Instantly share code, notes, and snippets.

@jsmithdev
Created April 28, 2020 01:27
Show Gist options
  • Save jsmithdev/9658d2d52e08a99b6294ccd9fa678718 to your computer and use it in GitHub Desktop.
Save jsmithdev/9658d2d52e08a99b6294ccd9fa678718 to your computer and use it in GitHub Desktop.
Common metadata for LWCs
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>48.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>Component Name</masterLabel>
<description>Component to do something</description>
<targets>
<target>lightning__AppPage</target>
<target>lightning__RecordPage</target>
<target>lightning__HomePage</target>
<target>lightningCommunity__Page</target>
<target>lightningCommunity__Default</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordPage, lightning__AppPage, lightningCommunity__Default">
<property
name="title"
type="String"
label="Title"
description="Title for card"
default="Default Text"
></property>
<property
name="includeSomething"
type="Boolean"
label="Include Some Flag"
description="Include something and set a boolean?"
default="true"
></property>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment