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

Generate inline style attribute text. #394

Open
ccorcos opened this issue Aug 23, 2020 · 3 comments
Open

Generate inline style attribute text. #394

ccorcos opened this issue Aug 23, 2020 · 3 comments

Comments

@ccorcos
Copy link

ccorcos commented Aug 23, 2020

I'm looking to use glamor for a very simple use-case: generating inline style attribute text.

glamor.inline({backgroundColor: blue, borderRadius: 12}) => "background-color:blue;border-radius:12px"
@netojose
Copy link

@ccorcos , if you want write inline css, you can use just react for this:

<p style={{backgroundColor: blue, borderRadius: 12}}}>Hi</p>

@ccorcos
Copy link
Author

ccorcos commented Jun 1, 2022

I am not using React in this context

@netojose
Copy link

netojose commented Jun 1, 2022

I am not using React in this context

So, in this case, I suppose this package can't help you. According to implementation specification, this tool go to another direction.

And, I think this tool is not maintained. The last version is from 8 years ago, and the last commit to this repository, was 7 years ago.

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