primevue-tailwind icon indicating copy to clipboard operation
primevue-tailwind copied to clipboard

Mismatch between the pass through option names in primevue 4.0.0 and the Tailwind preset

Open daxyonis opened this issue 8 months ago • 0 comments

With primevue4.0.0 and the Aura preset for Tailwind, I noticed that using the Menubar component, my items were always displayed vertically (while they should be displayed horizontally if the width is large enough). I investigated the problem and it comes from a mismatch between some of the pass through option names. For the Menubar, we have root, rootList and item (https://github.com/primefaces/primevue/blob/master/packages/primevue/src/menubar/Menubar.d.ts) while in the preset, there is root, menu and menuitem for the same structures. Changing the preset option names to those of the primevue definition fixed the problem. This may be just speculation, but maybe this problem exists for other components as well...

daxyonis avatar Jul 05 '24 03:07 daxyonis