Post
Define a `classes/1` function that filters a keyword list by if their value is truthy.
0 reposts3 likes
Lol i was looking the name of the lib i used in one project and it's yours github.com/zachdaniel/t...
github.comGitHub - zachdaniel/tails: Utilities for working with tailwind classes, like semantic merge, and conditional class lists.Utilities for working with tailwind classes, like semantic merge, and conditional class lists. - zachdaniel/tails
The classes function seems really simple and sensible to me. You reminded me of this library that I stumbled across not long ago: github.com/benvp/ex_cva - I haven't used this project, but I did love the idea of a CVA. Might offer some inspiration too.
github.comGitHub - benvp/ex_cva: Class Variance Authority for ElixirClass Variance Authority for Elixir. Contribute to benvp/ex_cva development by creating an account on GitHub.