haltu / muuri

Infinite responsive, sortable, filterable and draggable layouts
https://muuri.dev
MIT License
10.77k stars 643 forks source link

Muuri Doesn't Work on Tailwindcss Classe #562

Open MdShijanAli opened 9 months ago

MdShijanAli commented 9 months ago

You need to update Muuri because it doesn't work with Tailwindcss Classes. It's Very Big Problem to mak layout and design

ogrotten commented 7 months ago

You need to update Muuri because it doesn't work with Tailwindcss Classes. It's Very Big Problem to mak layout and design

It works fine along-side tailwind. Elements keep their classes, and tailwind works as expected.

The REAL thing that might be a problem for you is the multiple layers of elements required for each item in the muuri grid. It's mind bending with multiple layers of stuff moving around.

Speaking of which, if you're having a problem with Muuri.grid vs tailwind .grid, then rename the element attribute that muuri uses to id where it's supposed to go. I personally made it <div id="Muuri" /> Which i'm not sure why isn't used as default to begin with, but it's easy to change.

MdShijanAli commented 7 months ago

Thanks