---
title: "Pages and components"
description: "The UI every capability ships with: packaged pages, the app shell, one gate and one notices region, styled defaults on tokens, headless composables with bindings, copy-in source, and an accessibility contract to WCAG 2.2 AA."
canonical_url: "https://nuxt-backend.dev/docs/build/ui"
---
# Pages and components

> The UI every capability ships with: packaged pages, the app shell, one gate and one notices region, styled defaults on tokens, headless composables with bindings, copy-in source, and an accessibility contract to WCAG 2.2 AA.

Version: nuxt-backend 0.6.x · Tab: Build · Kind: landing · 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.

- [Try it live in the playground](https://nuxt-backend.dev/playground/pricing)

Every capability of the backend comes with its UI. Install the module and your app has sign-in, pricing, settings, profile, security and an admin console, with nothing to write. The same parts are components you place in your own pages, and composables you can build any markup on. Nuxt gives you pages, layouts and components; the package adds the pages and components a client app needs, styled defaults you restyle with tokens, headless state with accessibility bindings, and source you can eject.

## What you get

- **Packaged pages**, each at a path its `pages` key sets, moved with a string or turned off with `false`, with the route rules a private page needs.
- **The app shell**: `<AppShell>` puts your brand, the workspace switcher, the notification bell and the account menu around your pages.
- **One gate**: `<Gate>` shows a region only to someone signed in, with a role, in a workspace, with a plan's feature or with room on a quota.
- **One notices region**: `<BackendNotices>` shows an administrator's visit, maintenance, a past-due payment, low credits, a gift to claim and the rest, most important first.
- **Styled defaults**: `.vue` components themed by `--bk-*` tokens on `:root` inside `@layer nuxt-backend`, with state as `data-*` attributes. The CSS loads only for the capabilities you use, and `css: false` loads none.
- **Headless composables**: state, actions and bindings that carry the accessibility attributes, plus the helpers in `#backend/a11y`.
- **Every word a label**, changed in app config or translated with `@nuxtjs/i18n`, the emails included.
- **An accessibility contract** to WCAG 2.2 AA that every component keeps and the package's tests hold it to.

## How it works

A packaged page is a thin wrapper around one component, inside one shared frame: the `<main>` landmark, the title and `h1` from its labels, the notices region, and a status region for the connection. The component is built from named parts and reads the same composables you would (`useLoginFlow`, `usePricing`, `useWorkspace` and the rest). Every element carries a `data-*` attribute that the stylesheet and your CSS select.

What a component shows follows what the server allows. A member who manages no billing sees no checkout button, a signed-out visitor gets a sign-in link, and a page guard answers with a 403 that renders `<AccessDenied>`. The pricing page renders on the server from the live catalog, so its prices cannot drift from what checkout charges.

The components lean on the platform: a native `<dialog>` for the confirm-it's-you prompt, the native popover for the shell's menus, radios in a fieldset for the monthly and yearly switch, and `Intl` for every date and amount in the reader's locale. The package depends on no UI library and works next to any of them.

## Change what you outgrow

Take the lowest rung that does the job. Each keeps everything above it with the package:

<table>
<thead>
  <tr>
    <th>
      Rung
    </th>
    
    <th>
      You change
    </th>
    
    <th>
      Page
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      1. Mount
    </td>
    
    <td>
      nothing
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ui/pages">
        Packaged pages
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      2. Tokens
    </td>
    
    <td>
      colours, radii and surfaces, everywhere at once
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ui/customize/tokens">
        Restyle with tokens
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      3. Labels
    </td>
    
    <td>
      any word, in any language
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ui/customize/labels">
        Change copy and labels
      </a>
      
      , <a href="https://nuxt-backend.dev/docs/build/ui/customize/translation">
        Translate the UI
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      4. Slots
    </td>
    
    <td>
      one region of one placement
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ui/customize/slots">
        Customize with slots
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      5. Swap a part
    </td>
    
    <td>
      one part everywhere, or a whole page
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ui/customize/parts">
        Swap a part
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      6. Headless
    </td>
    
    <td>
      all the markup, on the composables' bindings
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ui/customize/headless">
        Build on the composables
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      7. Eject
    </td>
    
    <td>
      the source of a part, page or email
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ui/customize/eject">
        Eject a part, page or email
      </a>
    </td>
  </tr>
</tbody>
</table>

[The customization ladder](https://nuxt-backend.dev/docs/build/ui/customize) explains how to choose, and why there is no unstyled component layer.

## In development and in production

- **In development** the pages run against your dev deployment and the providers' test modes: sign in with a code from the terminal, and buy a plan in the billing sandbox with a test card ([Develop on real sandboxes](https://nuxt-backend.dev/docs/develop/sandboxes)).
- **In production** there is nothing to switch on. Private pages stay out of search indexes, sitemaps and caches at their paths ([Caches](https://nuxt-backend.dev/docs/build/ui/pages#caches)).
- **Contrast.** The default colours pass WCAG 2.2 AA in the light and the dark scheme; colours of your own must too ([Accessibility](https://nuxt-backend.dev/docs/build/ui/accessibility#what-this-means-for-you)).

The demo mounts the module's pages next to Panels: [pricing](https://nuxt-backend.dev/playground/pricing), [settings](https://nuxt-backend.dev/playground/settings), [profile](https://nuxt-backend.dev/playground/profile), [security](https://nuxt-backend.dev/playground/security) and [gifts](https://nuxt-backend.dev/playground/gifts).

## The inventory

What the package ships for this part of the app today, generated from the code: each name links to its reference entry.

- Pages: [`/accept-invitation`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/legal/accessibility`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/admin`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/gifts`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/invite`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/account/keep`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/login`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/pricing`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/legal/privacy`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/profile`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/r/:code`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/report`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/security`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/settings`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/legal/subprocessors`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/legal/terms`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/unsubscribe`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/waitlist`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/welcome`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app)
- Components: [`<AuthForm>`](https://nuxt-backend.dev/docs/reference/components/account#authform), [`<WaitlistForm>`](https://nuxt-backend.dev/docs/reference/components/account#waitlistform), [`<ReauthenticateDialog>`](https://nuxt-backend.dev/docs/reference/components/account#reauthenticatedialog), [`<ProfileSettings>`](https://nuxt-backend.dev/docs/reference/components/account#profilesettings), [`<SecuritySettings>`](https://nuxt-backend.dev/docs/reference/components/account#securitysettings), [`<ConsentPrompt>`](https://nuxt-backend.dev/docs/reference/components/account#consentprompt), [`<OnboardingFlow>`](https://nuxt-backend.dev/docs/reference/components/account#onboardingflow), [`<ActivationChecklist>`](https://nuxt-backend.dev/docs/reference/components/account#activationchecklist), [`<HowDidYouHear>`](https://nuxt-backend.dev/docs/reference/components/account#howdidyouhear), [`<AccountData>`](https://nuxt-backend.dev/docs/reference/components/account#accountdata), [`<WorkspaceSettings>`](https://nuxt-backend.dev/docs/reference/components/workspaces#workspacesettings), [`<AcceptInvitation>`](https://nuxt-backend.dev/docs/reference/components/workspaces#acceptinvitation), [`<AuditLog>`](https://nuxt-backend.dev/docs/reference/components/workspaces#auditlog), [`<PricingTable>`](https://nuxt-backend.dev/docs/reference/components/billing#pricingtable), [`<BillingCheckoutLink>`](https://nuxt-backend.dev/docs/reference/components/billing#billingcheckoutlink), [`<BillingPortalLink>`](https://nuxt-backend.dev/docs/reference/components/billing#billingportallink), [`<BillingHistory>`](https://nuxt-backend.dev/docs/reference/components/billing#billinghistory), [`<UsageHistory>`](https://nuxt-backend.dev/docs/reference/components/billing#usagehistory), [`<UpgradePrompt>`](https://nuxt-backend.dev/docs/reference/components/billing#upgradeprompt), [`<CancelFlow>`](https://nuxt-backend.dev/docs/reference/components/billing#cancelflow), [`<WithdrawalButton>`](https://nuxt-backend.dev/docs/reference/components/billing#withdrawalbutton), [`<GiftForm>`](https://nuxt-backend.dev/docs/reference/components/billing#giftform), [`<GiftList>`](https://nuxt-backend.dev/docs/reference/components/billing#giftlist), [`<ReferralCard>`](https://nuxt-backend.dev/docs/reference/components/billing#referralcard), [`<AdminUsers>`](https://nuxt-backend.dev/docs/reference/components/workspaces#adminusers), [`<AdminWorkspaces>`](https://nuxt-backend.dev/docs/reference/components/workspaces#adminworkspaces), [`<Gate>`](https://nuxt-backend.dev/docs/reference/components/shell#gate), [`<BackendNotices>`](https://nuxt-backend.dev/docs/reference/components/shell#backendnotices), [`<AccessDenied>`](https://nuxt-backend.dev/docs/reference/components/shell#accessdenied), [`<ConnectionStatus>`](https://nuxt-backend.dev/docs/reference/components/shell#connectionstatus), [`<UploadField>`](https://nuxt-backend.dev/docs/reference/components/shell#uploadfield), [`<NotificationInbox>`](https://nuxt-backend.dev/docs/reference/components/shell#notificationinbox), [`<ContactForm>`](https://nuxt-backend.dev/docs/reference/components/shell#contactform), [`<AppShell>`](https://nuxt-backend.dev/docs/reference/components/shell#appshell), [`<AiLabel>`](https://nuxt-backend.dev/docs/reference/components/shell#ailabel), [`<LegalProcessors>`](https://nuxt-backend.dev/docs/reference/components/shell#legalprocessors), [`<LegalStorage>`](https://nuxt-backend.dev/docs/reference/components/shell#legalstorage), [`<LegalDetail>`](https://nuxt-backend.dev/docs/reference/components/shell#legaldetail), [`<LegalVersion>`](https://nuxt-backend.dev/docs/reference/components/shell#legalversion), [`<LegalContactPoints>`](https://nuxt-backend.dev/docs/reference/components/shell#legalcontactpoints), [`<LegalModeration>`](https://nuxt-backend.dev/docs/reference/components/shell#legalmoderation)
- Composables: [`useAppShell`](https://nuxt-backend.dev/docs/reference/nuxt/composables#at-a-glance), [`useBackendConfig`](https://nuxt-backend.dev/docs/reference/api/use-backend-config), [`useLabels`](https://nuxt-backend.dev/docs/reference/api/use-labels), [`useBackendPagePath`](https://nuxt-backend.dev/docs/reference/api/use-backend-page-path)

## In this section

<card-group>
<card icon="i-lucide-layout-template" title="Packaged pages" to="https://nuxt-backend.dev/docs/build/ui/pages">

Every page, its key and guard, the frame, and how to move one or turn it off.

</card>

<card icon="i-lucide-panel-top" title="Build the app shell" to="https://nuxt-backend.dev/docs/build/ui/app-shell">

`<AppShell>`: your brand, the workspace switcher, the bell and the account menu.

</card>

<card icon="i-lucide-door-open" title="Show parts of a page to the right people" to="https://nuxt-backend.dev/docs/build/ui/gate">

`<Gate>` for a sign-in, a role, a workspace, a plan's feature or a quota.

</card>

<card icon="i-lucide-megaphone" title="Show app-wide notices" to="https://nuxt-backend.dev/docs/build/ui/notices">

`<BackendNotices>`: every notice the backend raises, in one region.

</card>

<card icon="i-lucide-accessibility" title="Accessibility" to="https://nuxt-backend.dev/docs/build/ui/accessibility">

What the components guarantee under WCAG 2.2 AA, and what a replacement keeps.

</card>

<card icon="i-lucide-palette" title="Customize" to="https://nuxt-backend.dev/docs/build/ui/customize">

The ladder from tokens to ejected source, one page per rung.

</card>
</card-group>


## Sitemap

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