Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

[Question] Why array instead of string? #39

Open
NandoMB opened this issue Apr 28, 2023 · 1 comment
Open

[Question] Why array instead of string? #39

NandoMB opened this issue Apr 28, 2023 · 1 comment

Comments

@NandoMB
Copy link

NandoMB commented Apr 28, 2023

There are a reason to send an array as the custom style? Why not parse a string splitting by "space character"? Just a curious question...

Actual:

classes={["flex:1", "bg:purple-100", "justify:center", "items:center"]}

Propose:

classes="flex:1 bg:purple-100 justify:center items:center"
@DeVoresyah
Copy link

hi, if you're looking styles library that's the syntax similar to TailwindCSS. You can check https://osmicsx.dev/

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

No branches or pull requests

2 participants