function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
smita bhargavasmita bhargava 

design component in lightning component

In the lightning component bundle I have the design  component.

Please let me know what is the difference between this and the markup.

In what specific situations do we need to create a <design:component>. 

A specific example with clarity will be helpful to understand.

thanks
smita 
Raj VakatiRaj Vakati
 If you add design attributes to you component bundle then they can be configured via the Lightning Page Builder. means if you want to pass any information from the Lightning app builder you need to expose those attribute to the designer 

https://medium.com/eigen-x/make-your-lightning-components-customizable-with-design-attributes-e93b12905d10
http://sfdcmonkey.com/2017/10/03/design-resource-lightning-component/