How do I override the style of PrimeNG components?

UI Components for Angular
Post Reply
Posts: 8
Joined: 06 Mar 2023, 11:35

10 Mar 2023, 08:29

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.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests