Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial ToClassList instance #84

Open
kkdaisuki opened this issue Jan 4, 2024 · 1 comment
Open

Trivial ToClassList instance #84

kkdaisuki opened this issue Jan 4, 2024 · 1 comment

Comments

@kkdaisuki
Copy link

kkdaisuki commented Jan 4, 2024

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?

@easafe
Copy link
Owner

easafe commented Jan 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants