In my below code, I want to add my own styling and add an icon from static resource. Salesforce doesn't provide the attributes eg class, id etc to LWC like it does in lightning components. Is there a way to do that or I have to create a custom tab using SLDS blueprint for tabs.

    <lightning-tab label="Item One">
        Content for tab 1
    <lightning-tab label="Item Two">
        Content for tab 2

1 Answer 1


You can only add a utility icon via iconName. If you need greater customization, you'll have to write your own component(s).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.