The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
Keep these guidelines in mind when creating Aura components and component bundles for Aura sites.
label attribute in the design file element, such as <design:component label="foo">.Use the design file to control which attributes are exposed to Experience Builder.
Make your attributes easy to use and understandable to an administrator. Don’t expose SOQL queries, JSON objects, or Apex class names.
Give required attributes default values to avoid a poor user experience. When a component that has required attributes with no default values is added to Experience Builder, it appears invalid.
Use basic supported types (string, integer, boolean) for exposed attributes.
Specify a min and max for integer attributes in the <design:attribute> element to control the range of accepted values.
Be aware that string attributes can provide a data source with a set of predefined values, allowing the attribute to expose its configuration as a picklist.
Give attributes a label with a friendly display name.
Include a description to explain the expected data and provide guidelines, such as the data format or expected range of values. Description text appears as a tooltip in the property panel.

To delete a design attribute for a component that implements the forceCommunity:availableForAllPageTypes interface, first remove the interface from the component before deleting the design attribute. Then reimplement the interface. If the component is referenced in a site page, you must remove the component from the page before you can change it.
See Also