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
-
How to use NuxtImg as background img with tailwind class bg-[url(xxx)] ?
Beta Was this translation helpful? Give feedback.
All reactions