Import css classes for component, without using the component #3022
Unanswered
Shadercloud
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I use the primevue css classes without using the element within my component?
For example I have a page where I have my own table (without using DataTable), but I want to style it the same as the DataTable. Using
.p-datatable-table
etc on my table.If I add
<DataTable />
somewhere within the component then it's fine, but if there is no<DataTable />
all the css classes disappear, and my own table is unstyled.Note that I'm using primevue with a theme such as this:
Beta Was this translation helpful? Give feedback.
All reactions