Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to apply initial data attributes to body? - Nuxt
N
Nuxt
•
4y ago
•
15 replies
asasinmode
How to apply initial data attributes to body?
Hello
, I was using I think nuxt rc 13 and to set data attribute on body tag I used bodyAttrs like so
useHead
({
bodyAttrs: {
'data-is-nav-open'
:
'false'
,
},
})
useHead
({
bodyAttrs: {
'data-is-nav-open'
:
'false'
,
},
})
But after updating to Nuxt 3
.0
.0
(at least that
's when I think it broke
, pretty sure it worked earlier
) it no longer does anything
. Any idea how to apply initial data attribute to body tag
?
Nuxt
Join
Nuxt Community Chat Server
31,686
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Where to fetch initial user data
N
Nuxt / ❓・help
2y ago
Ideal place for fetching initial data
N
Nuxt / ❓・help
2y ago
Why are custom data attributes not being included on the initial load of server-side render?
N
Nuxt / ❓・help
4y ago
How to dynamically set body class?
N
Nuxt / ❓・help
4y ago