# Vuepress

Add the vue-announcer to your enhanceApp.js

import VueAnnouncer from "@vue-a11y/announcer";

export default ({ Vue, router, isServer }) => {
  if (!isServer) {
    Vue.use(VueAnnouncer, {}, router);
  }
};

Ok, now just insert the component <VueAnnouncer /> in your main layout.

<template>
  <div>
    <ClientOnly>
      <VueAnnouncer /> <!-- You can place it anywhere in your application -->
    </ClientOnly>
    ...
  </div>
</template>


# Example using theme-default


Open sandbox example