change default component styles

UI Components for React
Post Reply
omar dweikat
Posts: 5
Joined: 26 Aug 2018, 07:31

26 Aug 2018, 07:48

I have some primereact components with default styles such as the spinner, but I want to change stuff like the spinner's button colors, also how can I change a dropdownlist's placeholder styling. Thank you in advance

cagatay.civici
Prime
Posts: 18053
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 Aug 2018, 12:02

What is your version?

omar dweikat
Posts: 5
Joined: 26 Aug 2018, 07:31

29 Dec 2018, 10:58

old versions were hard, doing this required changing the original styling of the component, such as using the class p-placeholder and such, now it is simply using the className attribute on the component and styling as you wish, peace

cagatay.civici
Prime
Posts: 18053
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Jan 2019, 12:14

Yes, new styling of 2.0+ has really improved things along with the Designer;

https://www.primefaces.org/primereact/#/theming

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest