Configure a Component for Lightning App Builder

There are a few steps to take before you can use your custom Lightning web component on a Lightning page in Lightning App Builder.

The componentName.js-meta.xml file defines the metadata values for the component, including the design configuration for components intended for use in Lightning App Builder. Edit the configuration file to:

  • Make your component usable in Lightning App Builder and in managed packages.
  • Define what types of Lightning pages your component can be used on.
  • Configure your component’s properties.
  • Set your component’s supported objects.

See the complete list of XML Configuration File Elements.

This sample configuration file makes the component available for all Lightning page types, but restricts support on record pages only for account, opportunity, and warehouse objects. The component has a different set of properties defined for record pages than for app and Home pages.

When defining a component property, make sure that it has the same type assigned (String, Integer, Boolean) in the .js file and in the configuration file. If the assigned types don’t match, the type assignment from the configuration file takes precedence.

To include an SVG resource as a custom icon for your component in Lightning App Builder, add it to your component’s folder. It must be named componentName.svg. You can have only one SVG per folder.

See Also