Activity › Forums › Salesforce® Discussions › How to Declare attributes in lightning component of Salesforce? Salesforce® Discussions How to Declare attributes in lightning component of Salesforce? Posted by Aditya on February 3, 2020 at 9:01 AM How to Declare attributes in lightning component of Salesforce? Manish replied 6 years, 3 months ago 3 Members · 2 Replies 2 Replies Sumit kumar Member February 3, 2020 at 9:09 AM Below is the syntax of using attribute in lightning component or application – <aura:component> <aura:attribute name="yourName" type="String" default="Marc Benioff" description="Using for Store Name"/> </aura:component> [adinserter block='9'] Manish Member February 3, 2020 at 9:22 AM Hi Aditya, you can find here, <aura:attribute name=”accObj” type=”Account” access=”public” default=”{‘sobjectType’: ‘Account’, ‘Name’: ”, ‘Website’: ”, ‘Phone’: ”, ‘Description’: ”, ‘Industry’: ”}” /> Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me