How to dynamically set body class?

let isDrawerOpen = $ref(false)

useHead({
  bodyAttrs: {
    class: isDrawerOpen ? 'overflow-hidden' : 'none',
  },
})


toggling isDrawerOpen has no effect, class "none" added all the time.
Was this page helpful?