purescript-flame icon indicating copy to clipboard operation
purescript-flame copied to clipboard

Trivial ToClassList instance

Open kkdaisuki opened this issue 1 year ago • 1 comments

We already have ToClassList instances for string and record, both of which are implemented by transforming them into Array String. Meanwhile, it seems that it could be good idea to add a trivial instance ToClassList (Array String) so that we can save time while avoid long lines when handling with libraries like TailwindCSS. Alternatively, we can add a classList attribute to handle things.

To be exact, we could add

instance ToClassList (Array String) where
    to = identity

here for the former idea.

What would you think?

kkdaisuki avatar Jan 04 '24 07:01 kkdaisuki

Hi @KanbeKotoriDaisuki this sounds like a good idea. I will get to it, thanks!

easafe avatar Jan 05 '24 18:01 easafe