How to amend some of the css classes on components with Taliwind Unstyled? #180
-
Hi, I am trying to use the PrimeVue components like Dropdown and Input*** components. At the same time, I want to change some of the CSS classes. For example, in the InputNumber or InputText, I want to make the background Also, is there a way I could apply those changes globally without having to change it on every component? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
cagataycivici
Oct 10, 2023
Replies: 1 comment 10 replies
-
These changes could be applied globally.
|
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is applied but bg-white overrides it. In general, after receiving community feedback we're not suggesting usePassThrough anymore and use a copy paste approach of the default preset instead, I've forked your stackblitz. With copy-paste, you have full control over the classes, with usePassThrough it is like trying to override CSS classes, dealing with mergeSection, mergeProps.
Copy-Paste is the way to go, new upcoming docs and the new Tailwind Demos will promote this one instead.