Page 1 of 1

How do I override the style of PrimeNG components?

Posted: 10 Mar 2023, 08:29
by Shannonmaus
I want to overright the style of primeng components as per component level not for whole app. Either I have to change the style in main theme.css file or inline style, but seems inline not works sometimes as expected. As example, I have to use <p-dropdown [options]="cities" formControlName="selectedCity"></p-dropdown> And I have to change the style of class ui-dropdown-item class name as per documentation.
I need same component with two diff style what is the correct approach for doing this? Please suggest.