To make a Lightning component attribute available for administrators to edit in the Lightning App Builder, add a design:attribute node for the attribute into the design resource. An attribute marked as required in the component definition automatically appears for users in the Lightning App Builder, unless it has a default value assigned to it. Required attributes with default values and attributes not marked as required in the component definition must be specified in the design resource or they won’t appear for users.
A design resource supports only attributes of type int, string, or boolean.
<design:attribute name="Name" datasource="value1,value2,value3" />
<design:attribute name="Name" datasource="value1,value2,value3" default="value1" />
<design:component label="Hello World"> <design:attribute name="subject" label="Subject" description="Name of the person you want to greet" /> <design:attribute name="greeting" label="Greeting" /> </design:component>
<design:component label="Hello World"> <design:attribute name="subject" label="Subject" description="Name of the person you want to greet" /> <design:attribute name="greeting" label="Greeting" /> <sfdc:objects> <sfdc:object>Custom__c</sfdc:object> <sfdc:object>Opportunity</sfdc:object> </sfdc:objects> </design:component>