primevue-tailwind
primevue-tailwind copied to clipboard
Method for providing extra props?
Is it currently possible or are there plans to support adding extra props to a component that can then be passed on to the passthrough arguments?
Example:
Most of my Panel
s are only text, so I have some padding for the content:
content: {
class: 'p-4 sm:p-6'
}
I would like the possibility to also have panels with no margins since that works better for some content.
Ideally I would be able to do something like this:
// MyComponent.vue
<Panel noMargin header="Foo">
<AnotherComponent />
</Panel>
and then change my preset to the following:
content: {
class: [
{ 'p-4 sm:p-6': props.noMargin !== true }
]
}