new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Nuxt · API · all subjects

components/route-announcer

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

NuxtRouteAnnouncer component availability

The NuxtRouteAnnouncer component is available in Nuxt v3.12 and later.

NuxtRouteAnnouncer purpose

The NuxtRouteAnnouncer component adds a hidden element with the page title to announce route changes to assistive technologies.

NuxtRouteAnnouncer placement

Add NuxtRouteAnnouncer in your app.vue or app/layouts/ directory to enhance accessibility by informing assistive technologies about page title changes.

NuxtRouteAnnouncer slot - default

The NuxtRouteAnnouncer component accepts a default slot with scoped slot prop 'message' that contains the announcement message text.

NuxtRouteAnnouncer customization

The NuxtRouteAnnouncer component is optional. To achieve full customization, you can implement your own component based on its source code at https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/components/nuxt-route-announcer.ts.

NuxtRouteAnnouncer with useRouteAnnouncer composable

You can hook into the underlying announcer instance using the useRouteAnnouncer composable, which allows you to set a custom announcement message.

NuxtAnnouncer for in-page content changes

For announcing in-page content changes such as form validation, toast notifications, and loading states, use the NuxtAnnouncer component with the useAnnouncer composable instead of NuxtRouteAnnouncer.

Give your agent this brain