---
title: "Parts"
description: "Every part the packaged pages and components are built from: its registered name, the component that renders it, what it receives, and the data-* hook it keeps when you swap it."
canonical_url: "https://nuxt-backend.dev/docs/reference/components/parts"
---
# Parts

> Every part the packaged pages and components are built from: its registered name, the component that renders it, what it receives, and the data-* hook it keeps when you swap it.

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/blob/main/src/ui/registry.ts)

A part is one region of a packaged component or page, registered as a component under its own name. An app component with the same name, in `app/components/`, replaces it everywhere, packaged pages included. [Swap a part](https://nuxt-backend.dev/docs/build/ui/customize/parts) shows how; this page lists every part.

## How a part is shaped

- **Its name** says the component it belongs to: `AuthFormCode` is a region of `<AuthForm>`, `AccountExport` of `<AccountData>`. A minor release may add a part, never rename one ([Stability](https://nuxt-backend.dev/docs/ship/releases/stability)).
- **It receives** the state its parent already holds, as props: the parent's headless composable (`flow` for the sign-in parts, `pricing` for the pricing parts) and the item it renders, such as one `plan`. `#backend/parts` types each part's props under the part's name, such as `PricingPlanCardProps` for `PricingPlanCard`. It emits nothing: it calls the composable's actions.
- **Its bindings** come from the same composable, such as `flow.bind.codeInput` and `flow.bind.submit`. They carry the accessibility attributes and handlers, so a part you write stays accessible ([Build on the composables](https://nuxt-backend.dev/docs/build/ui/customize/headless)).
- **Its hook** is the `data-*` attribute on its root, the same in the packaged part and the one you write, so styles and tests that target it keep working.

A part you swap in replaces the packaged one in every component and page that renders it. To change it in one place only, fill a [slot](https://nuxt-backend.dev/docs/build/ui/customize/slots) instead.

## Every part

### Sign-in: `<AuthForm>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        AuthFormHeader
      </code>
    </td>
    
    <td>
      The logo and the title
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="logo"
      </code>
      
      , <code>
        data-auth="title"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormChoose
      </code>
    </td>
    
    <td>
      The first step: the ways to sign in, in the order <code>
        preferLastMethod
      </code>
      
       gives them
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-choose"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormPasskey
      </code>
    </td>
    
    <td>
      The passkey button and the "Last used" badge, inside the first step
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="passkey"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormEmail
      </code>
    </td>
    
    <td>
      The email field and the button that sends a code
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-request-code"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormCode
      </code>
    </td>
    
    <td>
      The code field and the button that verifies it
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-verify-code"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormRecover
      </code>
    </td>
    
    <td>
      "Lost your passkey?": the address and the recovery code of a passkey-only account
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-recover"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormWaitlisted
      </code>
    </td>
    
    <td>
      A new address in early access with no ticket: its place on the waitlist, and the way to an invite code
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-waitlisted"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormInviteCode
      </code>
    </td>
    
    <td>
      The invite code field, while the app is invite only or early access
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-invite-code"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormAge
      </code>
    </td>
    
    <td>
      The question "How old are you?", asked once of a new address when the app sets a minimum age
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-age"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormTwoFactor
      </code>
    </td>
    
    <td>
      The second step after a sign-in code, for an account with an authenticator app: the app's code or a backup code, and whether to trust this device
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-two-factor"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormUndeliverable
      </code>
    </td>
    
    <td>
      An address the email provider stopped delivering to: no code was sent, the same words for every address, and a way back to try another
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-undeliverable"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormPasskeyOffer
      </code>
    </td>
    
    <td>
      The offer to save a passkey after a code sign-in, and the passkey a recovery requires, with the new recovery code
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="step-add-passkey"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormAgreement
      </code>
    </td>
    
    <td>
      The line that links every required consent, under the steps that can create an account
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="agreement"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuthFormError
      </code>
    </td>
    
    <td>
      The failure message of the current step, with the wait after a rate limit
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-auth="error"
      </code>
    </td>
  </tr>
</tbody>
</table>

### Waitlist: `<WaitlistForm>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        WaitlistJoin
      </code>
    </td>
    
    <td>
      The first step: the address, your questions, the launch-news box (unticked) and the friend the visitor came through
    </td>
    
    <td>
      <code>
        waitlist
      </code>
    </td>
    
    <td>
      <code>
        data-waitlist="join"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        WaitlistCode
      </code>
    </td>
    
    <td>
      The sign-in code that proves the address, and the way back
    </td>
    
    <td>
      <code>
        waitlist
      </code>
    </td>
    
    <td>
      <code>
        data-waitlist="verify"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        WaitlistPlace
      </code>
    </td>
    
    <td>
      The place in line, the honest words about admission, and Leave; the <code>
        /waitlist
      </code>
      
       page renders it too
    </td>
    
    <td>
      <code>
        waitlist
      </code>
    </td>
    
    <td>
      <code>
        data-waitlist="place"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        WaitlistShare
      </code>
    </td>
    
    <td>
      Inside <code>
        WaitlistPlace
      </code>
      
      : the share link, its copy button and the friends who joined through it
    </td>
    
    <td>
      <code>
        waitlist
      </code>
    </td>
    
    <td>
      <code>
        data-waitlist="share"
      </code>
    </td>
  </tr>
</tbody>
</table>

The `waitlist` a part receives is `useWaitlist()`, with the form's own `join` and `verify`: a part of yours calls them, and `<WaitlistForm>` still emits `joined`, `signed-in` and `error`.

### First run: `<OnboardingFlow>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        OnboardingProfile
      </code>
    </td>
    
    <td>
      The first step: the person's name and an optional picture, saved to the account
    </td>
    
    <td>
      <code>
        onboarding
      </code>
    </td>
    
    <td>
      <code>
        data-onboarding="profile"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        OnboardingWorkspace
      </code>
    </td>
    
    <td>
      The workspace: rename the one the account starts with, or join a workspace the person was invited to
    </td>
    
    <td>
      <code>
        onboarding
      </code>
    </td>
    
    <td>
      <code>
        data-onboarding="workspace"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        OnboardingTeammates
      </code>
    </td>
    
    <td>
      Inviting people to the workspace by email, one after another
    </td>
    
    <td>
      <code>
        onboarding
      </code>
    </td>
    
    <td>
      <code>
        data-onboarding="teammates"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        OnboardingPlan
      </code>
    </td>
    
    <td>
      The pricing table and a way to decide later; shown only when the catalog sells a plan
    </td>
    
    <td>
      <code>
        onboarding
      </code>
    </td>
    
    <td>
      <code>
        data-onboarding="plan"
      </code>
    </td>
  </tr>
</tbody>
</table>

The `onboarding` a part receives is `useOnboarding()`: it saves what it asks for, then calls `next()` or `skip()`, and the flow emits `done` once the first run is stamped.

### App shell: `<AppShell>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        AccountMenu
      </code>
    </td>
    
    <td>
      The account button and the popover it opens: the profile, security and settings links, the admin console for an administrator, and sign out
    </td>
    
    <td>
      <code>
        shell
      </code>
    </td>
    
    <td>
      <code>
        data-shell="account"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        WorkspaceSwitcher
      </code>
    </td>
    
    <td>
      The workspace button and the popover it opens: every workspace with the person's role, the invitations waiting, and a form to create one; shown while the shell has a switcher
    </td>
    
    <td>
      <code>
        shell
      </code>
    </td>
    
    <td>
      <code>
        data-shell="switcher"
      </code>
    </td>
  </tr>
</tbody>
</table>

The `shell` a part receives is `useAppShell()`; the switcher's state is its `switcher`.

### Re-authentication: `<ReauthenticateDialog>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ReauthenticatePasskey
      </code>
    </td>
    
    <td>
      The first step: the passkey button, and the way to a code instead
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-reauthenticate="step-choose"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ReauthenticateCode
      </code>
    </td>
    
    <td>
      The code sent to the account's address, and the button that verifies it
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-reauthenticate="step-verify-code"
      </code>
    </td>
  </tr>
</tbody>
</table>

They share the sign-in parts' shape, receiving the `useReauthentication()` state as `flow`.

### Pricing: `<PricingTable>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        PricingPeriodSwitch
      </code>
    </td>
    
    <td>
      Monthly or yearly billing, with what a year saves
    </td>
    
    <td>
      <code>
        pricing
      </code>
    </td>
    
    <td>
      <code>
        data-pricing="interval"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PricingCurrencySelect
      </code>
    </td>
    
    <td>
      The currency picker, where the catalog prices more than one
    </td>
    
    <td>
      <code>
        pricing
      </code>
    </td>
    
    <td>
      <code>
        data-pricing="currency"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PricingPlanCard
      </code>
    </td>
    
    <td>
      One plan: name, price, trial, features and its action
    </td>
    
    <td>
      <code>
        pricing
      </code>
      
      , <code>
        plan
      </code>
    </td>
    
    <td>
      <code>
        data-pricing="plan"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PricingPackCard
      </code>
    </td>
    
    <td>
      One credit pack: credits, price per credit and its action
    </td>
    
    <td>
      <code>
        pricing
      </code>
      
      , <code>
        pack
      </code>
    </td>
    
    <td>
      <code>
        data-pricing="pack"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PricingCancelConfirm
      </code>
    </td>
    
    <td>
      The one-step confirmation of a cancellation
    </td>
    
    <td>
      <code>
        pricing
      </code>
    </td>
    
    <td>
      <code>
        data-pricing="cancel-confirm"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PricingChangeConfirm
      </code>
    </td>
    
    <td>
      A subscriber's switch, confirmed in one step: the price, when it happens and how the period settles
    </td>
    
    <td>
      <code>
        pricing
      </code>
      
      , <code>
        plan
      </code>
    </td>
    
    <td>
      <code>
        data-pricing="change-confirm"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PricingEmailOptOut
      </code>
    </td>
    
    <td>
      The EU soft opt-in under the checkout buttons: the notice and the unticked "Don't email me" box, while a topic takes it. <code>
        <BillingCheckoutLink>
      </code>
      
       renders it too
    </td>
    
    <td>
      <code>
        v-model
      </code>
      
      : the box
    </td>
    
    <td>
      <code>
        data-pricing="email-opt-out"
      </code>
    </td>
  </tr>
</tbody>
</table>

### Account: `<ProfileSettings>`, `<SecuritySettings>`, `<AccountData>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ProfileIdentity
      </code>
    </td>
    
    <td>
      The avatar, name and email at the top
    </td>
    
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        data-profile="identity"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ProfileNameSection
      </code>
    </td>
    
    <td>
      The name form
    </td>
    
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        data-profile="section-name"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ProfileEmailSection
      </code>
    </td>
    
    <td>
      The email change, by a code from each address
    </td>
    
    <td>
      <code>
        emailChange
      </code>
    </td>
    
    <td>
      <code>
        data-profile="section-email"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ProfileLanguageSection
      </code>
    </td>
    
    <td>
      The language picker
    </td>
    
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        data-profile="section-language"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ProfilePreferencesSection
      </code>
    </td>
    
    <td>
      The Email section: the topics a person receives
    </td>
    
    <td>
      <code>
        preferences
      </code>
    </td>
    
    <td>
      <code>
        data-profile="section-preferences"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SecurityPasskeys
      </code>
    </td>
    
    <td>
      The passkey list, with add, rename and remove
    </td>
    
    <td>
      <code>
        passkeys
      </code>
    </td>
    
    <td>
      <code>
        data-security="section-passkeys"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SecurityTwoFactor
      </code>
    </td>
    
    <td>
      The authenticator app: its setup with the first code, the backup codes, and turning it off
    </td>
    
    <td>
      <code>
        twoFactor
      </code>
    </td>
    
    <td>
      <code>
        data-security="section-two-factor"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SecuritySessions
      </code>
    </td>
    
    <td>
      The signed-in devices, with sign-out
    </td>
    
    <td>
      <code>
        sessions
      </code>
    </td>
    
    <td>
      <code>
        data-security="section-sessions"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SecurityAlerts
      </code>
    </td>
    
    <td>
      The latest sign-ins from a new device, each signing its session out while it lasts
    </td>
    
    <td>
      <code>
        alerts
      </code>
    </td>
    
    <td>
      <code>
        data-security="section-alerts"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AccountExport
      </code>
    </td>
    
    <td>
      The data export and its download link
    </td>
    
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        data-account="section-export"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AccountDeletion
      </code>
    </td>
    
    <td>
      The account deletion, with its typed confirmation
    </td>
    
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        data-account="section-delete"
      </code>
    </td>
  </tr>
</tbody>
</table>

### Workspaces: `<WorkspaceSettings>`, `<AcceptInvitation>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        WorkspaceList
      </code>
    </td>
    
    <td>
      The workspaces, with switch and create
    </td>
    
    <td>
      <code>
        workspace
      </code>
    </td>
    
    <td>
      <code>
        data-settings="section-workspaces"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        WorkspaceBilling
      </code>
    </td>
    
    <td>
      The workspace's plan and the link to pricing
    </td>
    
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        data-settings="section-billing"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        WorkspaceCredits
      </code>
    </td>
    
    <td>
      The credit balance, its history and top-up
    </td>
    
    <td>
      <code>
        credits
      </code>
    </td>
    
    <td>
      <code>
        data-settings="section-credits"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AcceptInvitationActions
      </code>
    </td>
    
    <td>
      The accept and decline buttons
    </td>
    
    <td>
      <code>
        invitation
      </code>
    </td>
    
    <td>
      <code>
        data-invitation="actions"
      </code>
    </td>
  </tr>
</tbody>
</table>

### Billing history: `<BillingHistory>`, `<UsageHistory>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        BillingHistoryOrder
      </code>
    </td>
    
    <td>
      One order: date, description, amount, status and invoice
    </td>
    
    <td>
      <code>
        order
      </code>
    </td>
    
    <td>
      <code>
        data-history="order"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        UsageHistoryEvent
      </code>
    </td>
    
    <td>
      One usage event: name, units and time
    </td>
    
    <td>
      <code>
        event
      </code>
    </td>
    
    <td>
      <code>
        data-usage="event"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CancelFlowQuestion
      </code>
    </td>
    
    <td>
      The optional question: the reasons, the comment and "Continue", or "Cancel my plan" where no offer can stand
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-cancel-flow="question"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CancelFlowOffer
      </code>
    </td>
    
    <td>
      The one save offer, by its real terms, and the button that accepts it
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-cancel-flow="offer"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CancelFlowConfirm
      </code>
    </td>
    
    <td>
      What cancelling ends, "Confirm cancellation" and "Back", where no offer can stand
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-cancel-flow="confirm"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CancelFlowEnd
      </code>
    </td>
    
    <td>
      When the plan ends and "Keep my plan", or that it stays
    </td>
    
    <td>
      <code>
        flow
      </code>
    </td>
    
    <td>
      <code>
        data-cancel-flow="end"
      </code>
    </td>
  </tr>
</tbody>
</table>

### Notifications: `<NotificationInbox>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        NotificationInboxBell
      </code>
    </td>
    
    <td>
      The button, with the unread count on it
    </td>
    
    <td>
      <code>
        inbox
      </code>
    </td>
    
    <td>
      <code>
        data-notifications="bell"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        NotificationInboxItem
      </code>
    </td>
    
    <td>
      One notification: its title, body and time, linking where it happened
    </td>
    
    <td>
      <code>
        inbox
      </code>
      
      , <code>
        notification
      </code>
    </td>
    
    <td>
      <code>
        data-notifications="item"
      </code>
    </td>
  </tr>
</tbody>
</table>

### Admin: `<AdminUsers>`, `<AdminWorkspaces>`, `<AuditLog>`

<table>
<thead>
  <tr>
    <th>
      Part
    </th>
    
    <th>
      Region
    </th>
    
    <th>
      Receives
    </th>
    
    <th>
      Hook
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        AdminUsersTable
      </code>
    </td>
    
    <td>
      The user list, with search
    </td>
    
    <td>
      <code>
        admin
      </code>
    </td>
    
    <td>
      <code>
        data-admin="list"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AdminUserDrawer
      </code>
    </td>
    
    <td>
      One user's details: role, ban, sessions, workspaces and impersonation
    </td>
    
    <td>
      <code>
        admin
      </code>
      
      , <code>
        user
      </code>
    </td>
    
    <td>
      <code>
        data-admin="drawer"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AdminWorkspacesTable
      </code>
    </td>
    
    <td>
      The workspace list, with search
    </td>
    
    <td>
      <code>
        admin
      </code>
    </td>
    
    <td>
      <code>
        data-admin="list"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AdminWorkspaceDrawer
      </code>
    </td>
    
    <td>
      One workspace's members and invitations
    </td>
    
    <td>
      <code>
        admin
      </code>
      
      , <code>
        workspace
      </code>
    </td>
    
    <td>
      <code>
        data-admin="drawer"
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AuditLogEvent
      </code>
    </td>
    
    <td>
      One entry of the activity trail
    </td>
    
    <td>
      <code>
        event
      </code>
    </td>
    
    <td>
      <code>
        data-audit="event"
      </code>
    </td>
  </tr>
</tbody>
</table>

A page of the package that adds parts registers them the same way, and this page lists them.

## Swap one

An `AuthFormCode.vue` in your app replaces the code step in `<AuthForm>`, on the packaged sign-in page too:

```vue [app/components/AuthFormCode.vue]
<script setup lang="ts">
import type { AuthFormCodeProps } from '#backend/parts'

const { flow } = defineProps<AuthFormCodeProps>()
</script>

<template>
  <form data-auth="step-verify-code" @submit.prevent="flow.verifyCode()">
    <label>
      Your six-digit code
      <input v-model="flow.otp.value" v-bind="flow.bind.codeInput">
    </label>
    <button v-bind="flow.bind.submit">
      Sign in
    </button>
  </form>
</template>
```

`npx nuxt-backend eject AuthFormCode` writes the packaged source to the same file instead, with its CSS and a version stamp, for when you want to start from it ([`eject`](https://nuxt-backend.dev/docs/reference/cli#eject)).

## Related

- [Swap a part](https://nuxt-backend.dev/docs/build/ui/customize/parts): the how-to, and replacing a whole page.
- [Build on the composables](https://nuxt-backend.dev/docs/build/ui/customize/headless): the bindings a part uses.
- [Eject a part, page or email](https://nuxt-backend.dev/docs/build/ui/customize/eject): owning the source outright.
- [Tokens and data hooks](https://nuxt-backend.dev/docs/reference/components/theme-tokens): the hooks each part keeps.
- [Components](https://nuxt-backend.dev/docs/reference/components): the components the parts belong to.


## Sitemap

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