# nuxt.config.js export default { head: { bodyAttrs: { class: 'bg-gray-50' } } /* your other NuxtJS configs */ }
For more configs definitions you can refer to the Nuxt configuration file.
Learn how to add class attribute to the body tag in NuxtJS
Created on Jul 17, 2021
•12572 views
# nuxt.config.js export default { head: { bodyAttrs: { class: 'bg-gray-50' } } /* your other NuxtJS configs */ }
If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️
Load comments for How to add class attribute to the body tag in NuxtJs
Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.
View Components2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago