Activity Forums Salesforce® Discussions What is the use of Lightning card in Lightning Component?

  • Avnish Yadav

    Member
    July 25, 2018 at 1:37 pm

    Hello Anurag,

    lightning:cardthey are used to apply a container around a related grouping of information. lightning:card is the component container.

    Thanks.

  • Parul

    Member
    September 17, 2018 at 1:57 pm

    Hi

    A lightning:card component is a group of related information in an article HTML tag.lightning:card uses the styling from Cards in the Lightning Design System.

    Example how to use Card

    <lightning:card title="Potential Duplicates" iconName="standard:contact" class="slds-p-around_medium" >
    <lightning:datatable data="{!v.mydata}" columns="{!v.mycolumns}" keyField="Id" hideCheckboxColumn="true"/>
    </lightning:card>

     

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos