-
Notifications
You must be signed in to change notification settings - Fork 270
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
feat: add useBackgroundImage
composable
#1248
base: main
Are you sure you want to change the base?
Conversation
Hello, I have added 3 new commits:
|
@danielroe |
My apologies for the slow review on this PR! I'm personally not sure this would be the right way to add this functionality. (Adding CSS generated in JS.) Instead I think generating the image URL with |
First of all, thank you for your response. I believe I should first explain the rationale behind this PR: nuxt-img encapsulates the functionalities of html Therefore, the purpose of this PR is to make setting However, you mentioned uncertainty about whether "Adding CSS generated in JS." is a good approach. I would like to understand more about your concerns regarding this idea. Could you please elaborate on why this might not be the correct approach and what your concerns are? |
Add a
useBackgroundImage
composable to enable the background to use the same functionality as<nuxt-img>
.Usage