How to use NuxtImg as background img with tailwind class bg-[url(xxx)] ? #1369
Unanswered
GuillaumeDgr
asked this question in
Q&A
Replies: 1 comment
-
|
Here is an example - https://github.com/Pinegrow/happy-paws-with-nuxt-tailwindcss/blob/main/app/components/BackgroundImageWrapper.vue. This component uses a local composable (https://github.com/Pinegrow/happy-paws-with-nuxt-tailwindcss/blob/main/app/composables/optimize-image.ts) that uses the useImage composable to achieve this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to use NuxtImg as background img with tailwind class bg-[url(xxx)] ?
Beta Was this translation helpful? Give feedback.
All reactions