Activity Forums Salesforce® Discussions What is the use of variant in Salesforce Lightning Button?

  • Avnish Yadav

    Member
    July 31, 2018 at 8:29 am

    Hello Anurag,

    Component variants correspond to variants in Lightning Design System. Variants change the appearance of a component and are controlled by the variant attribute.

    variant="brand" - A blue button with white text - Lightning design class="slds-button_brand".

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos