You need to sign in to do that
Don't have an account?

Change Lightning-Button Color & Size- LWC
Hi,
I'm new to LWC.
How do I change the button color and size of a lightning-button? It's taking the default from "Variant".
Alternatively, can I use anything else (like icon)?
Any help in this regard is really appreciated.
I'm new to LWC.
How do I change the button color and size of a lightning-button? It's taking the default from "Variant".
Alternatively, can I use anything else (like icon)?
Any help in this regard is really appreciated.
try custom button if you want to increase width of button like below.
<button class="slds-button slds-button_destructive" style="width:250px" >My Custom Button</button>
don't forget to mark it as the best answer.
Thank you
All Answers
https://www.lightningdesignsystem.com/components/buttons/
Let me know if this helps you. Thanks !
try custom button if you want to increase width of button like below.
<button class="slds-button slds-button_destructive" style="width:250px" >My Custom Button</button>
don't forget to mark it as the best answer.
Thank you