---
title: "Shell, gates and notices"
description: "The components that frame an app: <Gate> for what a person may see, <BackendNotices> for every app-wide notice, the app shell, the notification inbox, the page guard's 403 and the connection status, one section each."
canonical_url: "https://nuxt-backend.dev/docs/reference/components/shell"
---
# Shell, gates and notices

> The components that frame an app: <Gate> for what a person may see, <BackendNotices> for every app-wide notice, the app shell, the notification inbox, the page guard's 403 and the connection status, one section each.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [Source](https://github.com/qruto/nuxt-backend/tree/main/src/runtime/vue/components)

These components frame an app rather than fill a page. `<Gate>` shows its content only to the people a rule admits, `<BackendNotices>` holds every notice that applies to the whole session, `<AppShell>` is the frame your layout renders, and `<NotificationInbox>` lists what the app told a person. `<AccessDenied>` is what the [page guard's](https://nuxt-backend.dev/docs/build/auth/access/pages) 403 shows in your error page, and `<ConnectionStatus>` says when the live connection drops. `<UploadField>`, `<ContactForm>` and `<AiLabel>` are the small pieces of the same family: a file field, a contact form and the label on AI-made content. Each section lists the component's props, slots, events, states and accessibility, as the [component contract](https://nuxt-backend.dev/docs/reference/components#the-component-contract) asks of every one.

## `<Gate>`

Renders its content only for the people every check it names admits: signed in (`signed-in`), an app-wide role (`role`), the active workspace or a role in it (`workspace`), a feature of the plan (`feature`), or room left on a quota (`quota`, `amount`). Naming any check also asks for a sign-in, so a signed-out visitor gets the `fallback`. Exactly one slot renders: the content, `fallback` when a check fails, `placeholder` while they load (the server render, and the browser until it has hydrated), and `error` when the plan's features or quotas could not be read: never the content, and never the `fallback`, which would tell a subscriber to buy what they have.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/Gate.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-quota
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#quota">
        <code>
          quota
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        default
      </code>
      
      , <code>
        fallback
      </code>
      
      , <code>
        placeholder
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      loading, ready, refused, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        signedIn
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Only a signed-in account that is not banned.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        role
      </code>
    </td>
    
    <td>
      <code>
        string | string[]
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      An app-wide role, or several: any one passes.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        workspace
      </code>
    </td>
    
    <td>
      <code>
        boolean | string | string[]
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      <code>
        true
      </code>
      
      : the session has an active workspace. A built-in role or a list (<code>
        'owner'
      </code>
      
      , <code>
        ['owner', 'admin']
      </code>
      
      ): the person holds one of them there.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        feature
      </code>
    </td>
    
    <td>
      <code>
        string | string[]
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      A feature of the active workspace's plan, by its catalog key, or several: any one passes.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        quota
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      A quota of the plan, by its catalog key: passes while it has room for <code>
        amount
      </code>
      
       more.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        amount
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        1
      </code>
    </td>
    
    <td>
      How many the content needs room for, with <code>
        quota
      </code>
      
      : a whole number, at least 1 (the default), so a gate never opens on 0.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      What the quota counts, as its sentence names it ("strips"). Defaults to the catalog's <code>
        description
      </code>
      
      , else its key, in words.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['quota']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for the quota's sentence, over <code>
        appConfig.backend.labels.quota
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Renders exactly one slot, so each state is as accessible as what you put in it; never the content while the checks load (the placeholder, on the server render too), and never the content or the fallback when the plan cannot be read. With `quota` and no slot of yours: loading is a busy polite status, a failed read an alert, and with no room left a polite status says how many are used of how many and names the plans that allow more, its one stop a real link, named by the plan it opens, or for a member who manages no billing who to ask instead.

## `<BackendNotices>`

One region for every notice that holds for the whole session, on every page: an administrator acting as the account, maintenance, a failed payment, a scheduled deletion, low credits, a gift to claim and announcements. Place it once in your layout; it renders nothing until a notice applies, then shows each one that does, most important first (`NOTICE_ORDER`). Each notice has a named slot that replaces it and receives its state and actions; an empty slot turns it off. Its words are the `impersonation`, `maintenance`, `pastDue`, `deletion`, `credits`, `gift` and `announcement` labels.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/BackendNotices.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      every ready-made page, in the frame around it
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      none: each notice is its own family and reads its own label group: <code>
        impersonation
      </code>
      
      , <code>
        maintenance
      </code>
      
      , <code>
        pastDue
      </code>
      
      , <code>
        deletion
      </code>
      
      , <code>
        credits
      </code>
      
      , <code>
        gift
      </code>
      
       and <code>
        announcement
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      none: each notice is its own family and reads its own label group: <code>
        impersonation
      </code>
      
      , <code>
        maintenance
      </code>
      
      , <code>
        pastDue
      </code>
      
      , <code>
        deletion
      </code>
      
      , <code>
        credits
      </code>
      
      , <code>
        gift
      </code>
      
       and <code>
        announcement
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        impersonation
      </code>
      
      , <code>
        maintenance
      </code>
      
      , <code>
        past-due
      </code>
      
      , <code>
        deletion
      </code>
      
      , <code>
        low-credits
      </code>
      
      , <code>
        gift
      </code>
      
      , <code>
        announcement
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      empty, ready
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        threshold
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The balance under which the low-credits notice shows. Default: <code>
        appConfig.backend.billing.lowCreditsThreshold
      </code>
      
       (10).
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** One region, empty while no notice applies, each notice inside it in order of importance: a complementary region named in words for an administrator's visit, for maintenance and for a scheduled deletion, never by colour alone, and polite live regions that announce low credits, a gift to claim and an announcement, each announcement a group named by its words with a Dismiss button that names it too; "Keep my account" keeps focus while the deletion is cancelled and says so; "Stop impersonating" keeps focus while the visit ends and says so; a dismissed notice leaves focus where it was, or on the next announcement's Dismiss button when its own went with it; a failure is an alert.

## `<AccessDenied>`

What a signed-in person sees when a page is not open to them: the page guard's 403 (`definePageMeta({ auth: { role, workspace, feature } })`) on the module's error page or your app's `error.vue`, or a refusal of your own. It says why in the words of the rule they failed, who is signed in, and offers the ways on: the home page, the workspace switcher when a workspace role was missing, and signing in with another account, which comes back here.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/AccessDenied.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-access
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#access">
        <code>
          access
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        title
      </code>
      
      , <code>
        message
      </code>
      
      , <code>
        actions
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        signed-out
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, pending, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        error
      </code>
    </td>
    
    <td>
      <code>
        { data?: unknown, url?: string } | null
      </code>
    </td>
    
    <td>
      <code>
        null
      </code>
    </td>
    
    <td>
      The error page's <code>
        error
      </code>
      
      : the guard's 403 names the rule and the page in its <code>
        data
      </code>
      
      ; another 403 rendered on the server, the page in its <code>
        url
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reason
      </code>
    </td>
    
    <td>
      <code>
        AccessDeniedReason
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The rule the person failed, over the one <code>
        error
      </code>
      
       names.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        home
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Where the home link goes. Default: <code>
        redirects.afterSignIn
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['access']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this component, over <code>
        appConfig.backend.labels.access
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** A region named by its heading, which takes focus on the error page when the link that led there went away; the reason and the signed-in account are text, not colour; the switch-account button keeps focus while signing out (`aria-disabled`) and says so; a failed sign-out is an alert.

## `<ConnectionStatus>`

The live connection's state, in words, for a person: nothing while it is up; "Reconnecting…" once a drop has lasted `delay`; "You're offline." as soon as the browser is; and how many changes wait to be sent meanwhile. Display only: the client reconnects and sends the waiting changes on its own, and the browser asks before a tab with unsent changes closes.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/ConnectionStatus.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      every ready-made page, in the frame around it
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-connection
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#connection">
        <code>
          connection
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      empty, ready
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        delay
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        1500
      </code>
    </td>
    
    <td>
      How long a dropped connection lasts, in milliseconds, before it is shown. Going offline shows at once.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['connection']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this component, over <code>
        appConfig.backend.labels.connection
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** An empty polite live region stays mounted, and the words appear in it once a drop has lasted the delay or the browser goes offline, so they are announced; nothing to press, since the client reconnects and sends the waiting changes on its own.

## `<UploadField>`

A labelled file field that uploads through the upload URL `setupStorage` mints, then calls `claim`, where the deployment checks the file. v-model is set only once the claim went through. The keyboard path is a button that opens the native picker; dropping a file onto the field is a second path. A refused file says why, for another one; a file that failed on the way says so with a Try again button, which picks up where it stopped. The logic is `useUploadField`, so markup of your own can do the same with its bindings.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/UploadField.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-upload
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#upload">
        <code>
          upload
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        default
      </code>
      
      , <code>
        file
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        update:modelValue
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, uploading, claiming, done, refused, error
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        modelValue
      </code>
    </td>
    
    <td>
      <code>
        string | null
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The storage id of the claimed file. Bind it with <code>
        v-model
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        claim
      </code>
    </td>
    
    <td>
      <code>
        (storageId: string) => Promise<unknown>
      </code>
    </td>
    
    <td>
      required
    </td>
    
    <td>
      Your mutation that keeps the file. A refusal it throws is tied to the field.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        prepare
      </code>
    </td>
    
    <td>
      <code>
        (file: File, signal: AbortSignal) => Blob | Promise<Blob>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Turn the picked file into what is sent (shrink, re-encode, strip metadata), before it uploads. A refusal it throws is tied to the field, as the claim's.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accept
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The file types the picker offers, as the <code>
        accept
      </code>
      
       attribute writes them. The claim checks the type again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'upload'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this field, over app config and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** The field is named by its visible label; the picker is a button that opens the browser's own file dialog, so the keyboard path needs no drop; while a file uploads it shows a labelled progress bar and a Cancel button, and the field is `aria-busy`; each step (uploading, checking, done, canceled) is said in a polite status, and a refusal or a failure is an alert the input is described by; a failure adds a Try again button the alert describes.

## `<NotificationInbox>`

What the app told a person, in the app: a button whose accessible name carries the unread count, and the list it opens on the browser's own popover, newest first. Opening a notification marks it read; the list marks every one read at once and loads older ones on request. Every event the backend records about the person reaches it live, worded in the active language, with nothing to wire per kind. Renders nothing for a signed-out visitor, or while an administrator acts as the account. The logic is `useNotificationInbox`, so markup of your own can do the same with its bindings.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/NotificationInbox.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-notifications
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#notifications">
        <code>
          notifications
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        notification
      </code>
      
      , <code>
        empty
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, loading, empty, error, pending, refused
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        NotificationInboxBell
      </code>
      
      , <code>
        NotificationInboxItem
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        limit
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Notifications per page, at most 50. Default 20.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'notifications'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this inbox, over app config and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** The button's accessible name carries the unread count ("Notifications, 3 unread"), and the badge beside it is hidden from assistive technology so the count is not read twice; the list is a non-modal popover named by its heading, which the browser closes on Escape and light dismiss and returns focus from to the button; an unread notification says so in a hidden word beside the dot, a notification without a place to go is a button that marks it read, and the first page loads in a polite status, an empty inbox says so in one, and a failure is an alert. A signed-out visitor gets nothing to press.

## `<ContactForm>`

A contact form for visitors, and a feedback form for signed-in people: the same component. Signed out it asks for a name, an address to answer and a message; signed in it sends as the account and asks for the message alone. The deployment checks the message, a hidden honeypot field and the bot check, limits each sender, and stores the message before anything is sent to your team. The form never emails the address someone typed: the confirmation is the form itself. The logic is `useContactForm`, so markup of your own can do the same with its bindings. Needs `submitContactMessage` re-exported from `email.api` in `backend/email.ts`.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/ContactForm.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-contact
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#contact">
        <code>
          contact
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        fields
      </code>
      
      , <code>
        sent
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      <code>
        sent
      </code>
      
      , <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, pending, sent, error, refused
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'contact'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this form, over app config and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Every field has a visible label, and the message is described by a line that gives its length range and count; the honeypot is hidden from people and from assistive technology; the send button stays focused while the message is on its way (`aria-disabled`) and says so; a persistent polite live region announces the sending and the confirmation, and a refusal is an alert the field it names is described by, worded to say what to do next.

## `<AppShell>`

The frame of a signed-in app, for your layout: a header with your brand and links, the workspace switcher, the notification bell and the account menu, then the app-wide notices, then your page in the `<main>` landmark, with the consent dialog and the connection status closing it. Signed out it shows your brand, your links and a sign-in link. The menus are disclosures on the browser's native popover, placed with CSS anchor positioning. The packaged pages inside it leave the header, the notices and the landmark to the shell. The logic is `useAppShell`.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/AppShell.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-shell
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#shell">
        <code>
          shell
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        brand
      </code>
      
      , <code>
        nav
      </code>
      
      , <code>
        actions
      </code>
      
      , <code>
        default
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, loading, refused
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      <code>
        AccountMenu
      </code>
      
      , <code>
        WorkspaceSwitcher
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        switcher
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      Show the workspace switcher. Turn it off in an app whose people never share a workspace. Read when the shell is set up.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'shell'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for the shell, over <code>
        appConfig.backend.labels.shell
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** The first stop is a skip link to the page; the header is the one banner landmark, the app's links sit in a navigation landmark named by the `navigation` label, and the page is the one `main` landmark. The account menu and the workspace switcher are disclosures on the browser's own popover: the button names the account or the workspace first and says what it opens, Escape or a click outside closes the panel and focus returns to the button, and the open state is `aria-expanded`. The current workspace is `aria-current` and says so in words, a role is a word and never a colour, and a switch, a creation and a sign-out are said in a polite status, a failure in an alert. A busy button keeps focus (`aria-disabled`).

## `<AiLabel>`

The visible "AI-generated" label the EU AI Act (Art. 50) asks for, beside an image or a text a model made. Alone, it is the label; with a `provenance` record (`useJob().provenance`, `ai.provenanceOf`), the label is a button that opens its details: the models, the date, and a link to check the image's content credentials.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/AiLabel.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-ai-label
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#ai">
        <code>
          ai
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, done
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        provenance
      </code>
    </td>
    
    <td>
      <code>
        JobProvenance | null
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      What made the content: with it, the label opens its details.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        src
      </code>
    </td>
    
    <td>
      <code>
        string | null
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The image's public URL, for the verify link to open the verifier on it. A signed URL is never sent.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelOverrides<BackendLabels['ai']>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this component, over <code>
        appConfig.backend.labels.ai
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Plain text that says the content is AI-generated, never a colour or an icon alone; with a provenance record it is a button that opens its details as a native popover (opened and closed by the keyboard, Escape closing it and focus returning to the button), a dialog named by its heading, whose verify link says where it goes.

## `<LegalProcessors>`

The processors an app on the package hands personal data to, as a table: who, what each handles, where, and its agreement. The ones of the capabilities the app uses come from src/convex/legal.ts, each where `appConfig.backend.legal.locations` says, then the app's own (`appConfig.backend.legal.processors`). The privacy and subprocessors pages show it; a Content page of your own does too, globally registered for Markdown, so your policy lists what the app runs.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/LegalProcessors.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /legal/accessibility
      </code>
      
       page (<code>
        pages.accessibility
      </code>
      
      ) and the <code>
        /legal/privacy
      </code>
      
       page (<code>
        pages.privacy
      </code>
      
      ) and the <code>
        /legal/subprocessors
      </code>
      
       page (<code>
        pages.subprocessors
      </code>
      
      ) and the <code>
        /legal/terms
      </code>
      
       page (<code>
        pages.terms
      </code>
      
      ), inside their components
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-legal
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#legal">
        <code>
          legal
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'legal'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this table, over <code>
        appConfig.backend.labels.legal
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** A table whose column headers and row headers (each processor's name) are `th` cells with their scope, so a screen reader names the column and the processor of every cell; it scrolls sideways inside its own box on a narrow screen rather than squeezing; each agreement is a link that says it is one, described by its processor's name, so a column of them reads apart.

## `<LegalStorage>`

Every cookie and storage key the package writes for the capabilities the app uses, then the app's own (`appConfig.backend.legal.storage`), as a table: its name, where it lives, what it is for, how long it lasts, and whether it waits for the person's permission. The privacy page shows it; a Content page of your own does too, globally registered for Markdown, so your cookie policy lists what the app writes.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/LegalStorage.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /legal/accessibility
      </code>
      
       page (<code>
        pages.accessibility
      </code>
      
      ) and the <code>
        /legal/privacy
      </code>
      
       page (<code>
        pages.privacy
      </code>
      
      ) and the <code>
        /legal/subprocessors
      </code>
      
       page (<code>
        pages.subprocessors
      </code>
      
      ) and the <code>
        /legal/terms
      </code>
      
       page (<code>
        pages.terms
      </code>
      
      ), inside their components
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-legal
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#legal">
        <code>
          legal
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'legal'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this table, over <code>
        appConfig.backend.labels.legal
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** A table whose column headers and row headers (each cookie's or key's name, as code) are `th` cells with their scope; whether an item waits for permission is a word in its own column, never a colour.

## `<LegalDetail>`

One of the company details `appConfig.backend.legal` holds, inside a sentence of yours: the company, its address and phone, the contact, the data protection officer, the registration number, the share capital, the VAT line, the publication director, the host or the consumer mediator. The contact and the officer are links when they are an address or a URL, the phone a `tel:` link, and the mediator links its site. Write a detail once in app config, and every page that names it says the same, a Content page included: it is globally registered for Markdown. Unset, it renders nothing; in development it marks the gap, so an unfinished page never passes for a finished one.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/LegalDetail.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-legal
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#legal">
        <code>
          legal
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, missing
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        field
      </code>
    </td>
    
    <td>
      <code>
        LegalDetailField
      </code>
    </td>
    
    <td>
      required
    </td>
    
    <td>
      Which detail: <code>
        company
      </code>
      
      , <code>
        address
      </code>
      
      , <code>
        contact
      </code>
      
      , <code>
        dpo
      </code>
      
      , <code>
        phone
      </code>
      
      , <code>
        registration
      </code>
      
      , <code>
        capital
      </code>
      
      , <code>
        vat
      </code>
      
      , <code>
        director
      </code>
      
      , <code>
        host
      </code>
      
       or <code>
        mediator
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'legal'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for the development mark, over <code>
        appConfig.backend.labels.legal
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Inline text inside the sentence it completes; a contact is a link whose name is the address itself, and a link that leaves the site opens apart; an unset detail renders nothing, and in development a marked note naming the key.

## `<LegalVersion>`

The version of one of your documents, as `setupAccount({ consents })` declares it in `backend/account.ts`: the version the consent ledger records when someone agrees, so the page and the record never disagree. Raise it there, and every page that prints it follows, a Content page included: it is globally registered for Markdown. Until the deployment answers, and for a kind it does not declare, it renders nothing; in development it marks a kind it does not declare.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/LegalVersion.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      no ready-made page: place it yourself
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-legal
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#legal">
        <code>
          legal
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, empty
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        kind
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      required
    </td>
    
    <td>
      The consent kind whose version to print: <code>
        privacy
      </code>
      
      , <code>
        terms
      </code>
      
      , or a kind of yours.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'legal'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for the development mark, over <code>
        appConfig.backend.labels.legal
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Inline text inside the sentence it completes, rendered only once the deployment answers, so it never reads a placeholder; in development a marked note names a kind the backend does not declare.

## `<LegalContactPoints>`

The single points of contact the EU Digital Services Act asks every host to name: one for the authorities of the member states, the Commission and the Board (Art. 11), one for the people who use the app (Art. 12, `legal.contact` unless you name another), and the languages you answer in, from `appConfig.backend.legal.contactPoints`. The terms page shows it; a Content page of your own does too, globally registered for Markdown. With no contact set, it renders nothing.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/LegalContactPoints.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /legal/accessibility
      </code>
      
       page (<code>
        pages.accessibility
      </code>
      
      ) and the <code>
        /legal/privacy
      </code>
      
       page (<code>
        pages.privacy
      </code>
      
      ) and the <code>
        /legal/subprocessors
      </code>
      
       page (<code>
        pages.subprocessors
      </code>
      
      ) and the <code>
        /legal/terms
      </code>
      
       page (<code>
        pages.terms
      </code>
      
      ), inside their components
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-legal
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#legal">
        <code>
          legal
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready, empty
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'legal'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this list, over <code>
        appConfig.backend.labels.legal
      </code>
      
       and the translations.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        except
      </code>
    </td>
    
    <td>
      <code>
        ReadonlyArray<'authorities' | 'users'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Points to leave out, for a page that names them already: the terms page leaves out the users' point when it is <code>
        legal.contact
      </code>
      
      , which it names in a sentence.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** A description list whose terms say who each contact is for and whose details hold the contact, a link whose name is the address itself; the languages are words in the reader's language, never flags; with no contact set it renders nothing.

## `<LegalModeration>`

How content is moderated, as the EU Digital Services Act asks a host's terms to say (Art. 14): a person on your team decides every report, every notice and every appeal, through the admin console's Reports tab; and the automated tools that check content (`appConfig.backend.legal.moderation`), each with what it checks and whether its verdict takes effect on its own or waits for a person. The terms page shows it; a Content page of your own does too, globally registered for Markdown.

<table>
<thead>
  <tr>
    <th>
      At a glance
    </th>
    
    <th>
      
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Registered from
    </td>
    
    <td>
      <code>
        src/runtime/vue/components/shell/LegalModeration.vue
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Rendered by
    </td>
    
    <td>
      the <code>
        /legal/accessibility
      </code>
      
       page (<code>
        pages.accessibility
      </code>
      
      ) and the <code>
        /legal/privacy
      </code>
      
       page (<code>
        pages.privacy
      </code>
      
      ) and the <code>
        /legal/subprocessors
      </code>
      
       page (<code>
        pages.subprocessors
      </code>
      
      ) and the <code>
        /legal/terms
      </code>
      
       page (<code>
        pages.terms
      </code>
      
      ), inside their components
    </td>
  </tr>
  
  <tr>
    <td>
      Family
    </td>
    
    <td>
      <code>
        data-legal
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Labels
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels#legal">
        <code>
          legal
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Slots
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      Events
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      States
    </td>
    
    <td>
      ready
    </td>
  </tr>
  
  <tr>
    <td>
      Parts
    </td>
    
    <td>
      none: swap the whole component
    </td>
  </tr>
  
  <tr>
    <td>
      Tier
    </td>
    
    <td>
      stable
    </td>
  </tr>
</tbody>
</table>

**Props**

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      <code>
        LabelGroupOverrides<'legal'>
      </code>
    </td>
    
    <td>
      none
    </td>
    
    <td>
      Copy for this statement, over <code>
        appConfig.backend.labels.legal
      </code>
      
       and the translations.
    </td>
  </tr>
</tbody>
</table>

**Accessibility:** Plain sentences, then a table whose column headers and row headers (each tool's name) are `th` cells with their scope; how a tool decides is a word in its own column, never a colour.

## What `<Gate>`'s slots receive

[Show parts of a page to the right people](https://nuxt-backend.dev/docs/build/ui/gate) shows how to use `<Gate>`.

<table>
<thead>
  <tr>
    <th>
      Slot
    </th>
    
    <th>
      Renders
    </th>
    
    <th>
      Receives
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      Every check passed
    </td>
    
    <td>
      <code>
        workspace
      </code>
      
       with <code>
        workspace
      </code>
      
      ; <code>
        limit
      </code>
      
      , <code>
        used
      </code>
      
       and <code>
        remaining
      </code>
      
       with <code>
        quota
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        fallback
      </code>
    </td>
    
    <td>
      A check failed
    </td>
    
    <td>
      With <code>
        quota
      </code>
      
      : the plans that allow more, and the link to the first
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        placeholder
      </code>
    </td>
    
    <td>
      The checks are loading, on the server render and until the page has hydrated
    </td>
    
    <td>
      Nothing
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        error
      </code>
    </td>
    
    <td>
      The plan's features or quotas could not be read
    </td>
    
    <td>
      <code>
        { error }
      </code>
      
      , as <code>
        { code, data, message }
      </code>
    </td>
  </tr>
</tbody>
</table>

Without a `fallback`, a failed check renders nothing, except `quota`: it says how many are used of how many, names the plans that allow more and links to the first. A member who manages no billing reads who to ask instead of a link. A gate asks for a feature a plan includes, never for a plan by name ([Feature gating](https://nuxt-backend.dev/docs/build/billing/subscriptions/feature-gating)).

```vue [app/pages/stories/index.vue]
<template>
  <Gate feature="illustrations">
    <NuxtLink to="/stories/new">New story</NuxtLink>
    <template #fallback>
      <UpgradePrompt feature="illustrations" />
    </template>
  </Gate>
</template>
```

A gate hides what a person should not see; it secures nothing. The server makes the same checks with the `authed`, `workspace`, `withRole` and `withFeature` tiers and `billing.requireQuota` ([Protect backend functions](https://nuxt-backend.dev/docs/build/auth/access/functions)), and a whole page with `definePageMeta({ auth })` ([Protect pages and routes](https://nuxt-backend.dev/docs/build/auth/access/pages)).

## The notices `<BackendNotices>` shows

[Show app-wide notices](https://nuxt-backend.dev/docs/build/ui/notices) shows how to use `<BackendNotices>`. Every ready-made page renders it in its frame, and so does `<AppShell>`. The notices, most important first, the order they stack in when several apply:

<table>
<thead>
  <tr>
    <th>
      Notice
    </th>
    
    <th>
      Shows while
    </th>
    
    <th>
      Slot
    </th>
    
    <th>
      Family
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      An administrator's visit
    </td>
    
    <td>
      An administrator acts as the account: whose account, when the visit ends, and a way out
    </td>
    
    <td>
      <code>
        impersonation
      </code>
    </td>
    
    <td>
      <code>
        data-impersonation
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Maintenance
    </td>
    
    <td>
      The maintenance switch is on (<a href="https://nuxt-backend.dev/docs/ship/operate/flags#kill-switches">
        Kill switches
      </a>
      
      ), with the administrator's message
    </td>
    
    <td>
      <code>
        maintenance
      </code>
    </td>
    
    <td>
      <code>
        data-maintenance
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      A failed payment
    </td>
    
    <td>
      A renewal payment failed and the provider retries it, shown to the billing managers only, with a way to the billing portal; its slot receives <code>
        { message, portal, isPending }
      </code>
    </td>
    
    <td>
      <code>
        past-due
      </code>
    </td>
    
    <td>
      <code>
        data-past-due
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Deletion scheduled
    </td>
    
    <td>
      The account's deletion waits out its grace period: when it happens, and a <strong>
        Keep my account
      </strong>
      
       button; its slot receives <code>
        { deletion, message, keep, isPending, error }
      </code>
    </td>
    
    <td>
      <code>
        deletion
      </code>
    </td>
    
    <td>
      <code>
        data-deletion
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Low credits
    </td>
    
    <td>
      The balance is under <code>
        threshold
      </code>
      
      , with a top-up
    </td>
    
    <td>
      <code>
        low-credits
      </code>
    </td>
    
    <td>
      <code>
        data-credits
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      A gift to claim
    </td>
    
    <td>
      A gift addressed to the person waits, with a claim button
    </td>
    
    <td>
      <code>
        gift
      </code>
    </td>
    
    <td>
      <code>
        data-gift
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Announcements
    </td>
    
    <td>
      An announcement you published is live and not dismissed, the three newest, each with a <strong>
        Dismiss
      </strong>
      
       button; its slot receives <code>
        { announcements, dismiss, isPending }
      </code>
    </td>
    
    <td>
      <code>
        announcement
      </code>
    </td>
    
    <td>
      <code>
        data-announcement
      </code>
    </td>
  </tr>
</tbody>
</table>

A named slot replaces that notice and receives its state and actions, such as `{ balance, topUp, dismiss }` for `low-credits`. An empty slot turns that notice off. The `impersonation`, `maintenance`, `past-due`, `deletion` and `low-credits` slots render only while their notice applies. The `gift` and `announcement` slots render whenever they are given, so the packaged live region stays in place for a screen reader: check the list they receive (`gifts.length`, `announcements.length`) before showing anything.

```vue [app/layouts/default.vue]
<template>
  <div>
    <BackendNotices>
      <template #low-credits="{ balance, preselected, pricingPath, topUp, dismiss }">
        <p>Only {{ balance }} credits left for new stories.</p>
        <button v-if="preselected" type="button" @click="topUp()">Add credits</button>
        <NuxtLink v-else :to="pricingPath">See the plans</NuxtLink>
        <button type="button" @click="dismiss()">Not now</button>
      </template>
      <template #gift />
    </BackendNotices>
    <slot />
  </div>
</template>
```

## The base module's auth-state components

These come from `nuxt-convex-module` and render only your slots:

<table>
<thead>
  <tr>
    <th>
      Component
    </th>
    
    <th>
      Renders
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        <Authenticated>
      </code>
    </td>
    
    <td>
      its slot once a session is signed in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        <Unauthenticated>
      </code>
    </td>
    
    <td>
      its slot once no session is signed in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        <AuthLoading>
      </code>
    </td>
    
    <td>
      its slot while the session loads
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        <AuthRefreshing>
      </code>
    </td>
    
    <td>
      its slot while the session token refreshes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        <AuthBoundary>
      </code>
    </td>
    
    <td>
      your slots around a session that expires
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
