Components
The module registers about thirty components of its own, auto-imported in every page and layout, and keeps the base module's <StorageImage> under a neutral name. Every one of its own keeps one contract, so a component you have not used yet reads like the ones you have: the same slots-and-events shape, the same data-* hooks, the same states and the same accessibility. This page lists them by area, with each one's status, and links to its section.
One component per job
- One gate.
<Gate>shows a region only to the people itssigned-in,role,workspace,featureandquotaprops admit. - One notice region.
<BackendNotices>holds every app-wide notice, each overridden through its slot. - Built from parts. Each component is a
.vuefile made of named parts, and a same-named component in your app replaces a part everywhere. Tokens live on:rootinside@layer nuxt-backend,css: falseloads no package CSS, andnpx nuxt-backend ejectcopies a part's source into the app. The components work beside any UI library and depend on none.
Components by area
| Component | Area | Status | What it is |
|---|---|---|---|
<Gate> | Gating | Available | Its content only for the people its props admit: signed in, a role, a workspace, a plan feature, room in a quota |
<BackendNotices> | Notices | Available | One region for every app-wide notice: impersonation, maintenance, announcements, a scheduled deletion, low credits and gifts to claim |
<AuthForm> | Sign-in and account | Available | The passwordless sign-in: email code and passkey, one slot per step |
<AcceptInvitation> | Sign-in and account | Available | Accept or decline a workspace invitation |
<ProfileSettings> | Sign-in and account | Available | The name, the email change and the language |
<SecuritySettings> | Sign-in and account | Available | Passkeys, device sessions and signing out |
<ReauthenticateDialog> | Sign-in and account | Available | "Confirm it's you" before a sensitive action |
<AccountData> | Sign-in and account | Available | The account's data export, with its files as zip parts, and its deletion, which waits out a grace period the person can cancel |
<AccessDenied> | Sign-in and account | Available | The page guard's 403 |
<ConnectionStatus> | Sign-in and account | Available | The live connection's state, in words |
<ConsentPrompt> | Sign-in and account | Available | The consents to accept again, the age question and the question about optional storage |
<WorkspaceSettings> | Workspaces | Available | The workspaces, the plan and the credits of the active workspace |
<PricingTable> | Billing | Available | The plans and packs, with checkout, plan changes and the portal |
<BillingCheckoutLink> | Billing | Available | A link that opens a checkout |
<BillingPortalLink> | Billing | Available | A link that opens the customer portal |
<BillingHistory> | Billing | Available | Past charges with their invoices |
<UsageHistory> | Billing | Available | Metered usage, event by event |
<UpgradePrompt> | Billing | Available | The plans that include a feature someone lacks |
<CancelFlow> | Billing | Available | One optional question, at most one save offer, then the cancellation, built from the CancelFlowQuestion, CancelFlowOffer, CancelFlowConfirm and CancelFlowEnd parts (Handle cancellations) |
<WithdrawalButton> | Billing | Available | The EU withdrawal button, with its confirm step and email receipt (Follow subscription law) |
<GiftForm> | Billing | Available | Buy a credit pack or a plan pass for someone by email, with a note and a delivery day (Gifts) |
<GiftList> | Billing | Available | The gifts a person received, to claim, and the ones they sent, to fix until they are claimed (Manage gifts) |
<AdminUsers> | Admin | Available | Every account, for administrators |
<AdminWorkspaces> | Admin | Available | Every workspace, for administrators |
<AuditLog> | Admin | Available | The activity trail, a page at a time |
<NotificationInbox> | Notifications | Available | The in-app notifications, with the unread count |
<WaitlistForm> | Sign-in and account | Available | Join the waitlist, confirm the address, see your place, built from the WaitlistJoin, WaitlistCode, WaitlistPlace and WaitlistShare parts |
<ContactForm> | Available | A contact or feedback form delivered to your team | |
<UploadField> | Files | Available | A checked upload with progress |
<AppShell> | Shell | Available | The frame of a signed-in app, for your layout: the header with the workspace switcher and the account menu, the notices and the page, built from the AccountMenu and WorkspaceSwitcher parts (Build the app shell) |
<OnboardingFlow> | Sign-in and account | Available | The first run at /welcome, built from the OnboardingProfile, OnboardingWorkspace, OnboardingTeammates and OnboardingPlan parts (Guide people to their first result) |
<AiLabel> | AI | Available | The visible "AI-generated" label on generated content, with what made it (Label AI-generated content) |
<ActivationChecklist> | Sign-in and account | Available | Three to seven first tasks, with progress (Guide people to their first result) |
<HowDidYouHear> | Sign-in and account | Available | One optional question after sign-up, stored with the first-touch campaign (Measure growth) |
<ReferralCard> | Billing | Available | A person's referral link with copy and share buttons, and the disclosure of the reward (Referrals) |
<StorageImage> | Base module | Available | An image from file storage |
Apps add tabs of their own to the admin console (Add your own admin tabs).
Names from before 0.2.0
The previews of main before 0.2.0 had these components. Each one's job is the name beside it now:
| Was | Its job now |
|---|---|
RoleBoundary | <Gate role> |
OrganizationBoundary | <Gate workspace> |
FeatureBoundary | <Gate feature> |
QuotaBoundary | <Gate quota> |
ImpersonationBanner | The impersonation notice of <BackendNotices> |
MaintenanceBanner | The maintenance notice of <BackendNotices> |
CreditsLowBanner | The low-credits notice of <BackendNotices> |
GiftClaimBanner | The gift notice of <BackendNotices> |
The component contract
Every packaged component:
- Renders one root with its family. It renders semantic, unstyled markup, and every element it renders carries
data-<family>(data-pricing="plan",data-settings="switch"). Those are the hooks the module's stylesheet and your CSS select; a component that renders only your slots has no family. - Types its slots. Each slot is declared with
SlotsType, so a slot's props type-check in your template. The names below are the whole list, and each region of the markup has one. - Types its events.
emitsis an object of validators, so@plan-changedand the rest type-check, and an event the table does not list does not exist. - Has a state for everything it waits on. Loading, empty, failed, busy and refused (signed out, a role or a feature the person lacks, a member who manages no billing) each render something deliberate, never a stale or misleading screen. Refused means no control the server would refuse.
- Takes its words from labels. Every word it shows comes from its label group, and its
labelsprop overrides that group for one placement. A component with no group shows only words you pass. - Is accessible. Every control's accessible name is the words it shows. A repeated control sits in a group named by what it acts on (a plan card, a workspace row), which also describes it, so a row of "Subscribe" buttons reads apart in any language. A busy button keeps focus (
aria-disabled) and says what it waits for; loading and empty are polite statuses, a failure is an alert, and the part that waits isaria-busy. The Accessibility page has each component's guarantees. - Is made of parts. Each region is a registered part that keeps its
data-*hook and takes its parent's composable as a prop, so a part you swap in keeps the rest of the contract.
A component that breaks the contract fails the package's tests, which render every component in every state.
The package's components
Generated from the contract's rows, which the contract tests render every component against:
| Component | Family | Labels | Slots | Events | States |
|---|---|---|---|---|---|
<AuthForm> | data-auth | auth | header, choose, request-code, verify-code, passkey-offer, recover, waitlisted, invite-code, age, two-factor, undeliverable, error, footer | success, error, step | ready, request-code, verify-code, two-factor, passkey-offer, recover, waitlisted, invite-code, age, undeliverable, pending, error |
<ConsentPrompt> | data-consent | consent | consent, footer | granted, error | ready, age, storage, pending, error |
<WaitlistForm> | data-waitlist | waitlist | join, verify, status | joined, signed-in, left, error | ready, verify-code, waitlisted, pending, error |
<ProfileSettings> | data-profile | profile | identity, name, email, language, preferences, footer | name-saved, email-changed, error | ready, confirm-current, pending, error |
<SecuritySettings> | data-security | security | passkeys, passkey, twoFactor, sessions, session, alerts, danger, footer | passkey-added, passkey-removed, two-factor-enabled, two-factor-disabled, session-revoked, sessions-revoked, signed-out, error | ready, loading, pending, error |
<AcceptInvitation> | data-invitation | invitation | loading, ready, accepted, declined, missing, error | accepted, declined, error | loading, ready, pending, accepted, declined, missing, error |
<PricingTable> | data-pricing | pricing | header, interval, currency, loading, empty, soon, plan, plan-action, contact, packs, pack, portal, error, footer | update:interval, checkout, plan-changed, canceled, uncanceled, topped-up, error | loading, empty, soon, ready, yearly, currencies, promotion, pending, confirm-cancel, error, refused |
<BillingCheckoutLink> | data-billing | none: the link's words are your default slot | default | error | ready, pending, refused |
<BillingPortalLink> | data-billing | none: the link's words are your default slot | default | error | ready, pending, refused |
<BillingHistory> | data-history | history | header, loading, empty, order, pager, error, footer | invoice, error | loading, empty, ready, pending, error |
<UsageHistory> | data-usage | usage | header, loading, empty, event, pager, error, footer | none | loading, empty, ready, pending, error |
<AccountData> | data-account | account | export, delete, error, footer | exported, scheduled, kept, error | ready, loading, pending, error, refused, scheduled |
<AuditLog> | data-audit | audit | header, loading, empty, event, pager, error, footer | none | loading, empty, ready, pending, error, refused |
<AdminUsers> | data-admin | admin | header, loading, empty, user, pager, error, footer | role-changed, banned, unbanned, sessions-revoked, impersonated, error | loading, empty, ready, pending, error, refused |
<AdminWorkspaces> | data-admin | admin | header, loading, empty, workspace, pager, error, footer | impersonated, error | loading, empty, ready, pending, error, refused |
<UpgradePrompt> | data-upgrade | upgrade | default, message, action | dismissed | loading, ready, refused |
<CancelFlow> | data-cancel-flow | cancelFlow | question, offer, confirm, end | close, canceled, kept, error | ready, pending, offered, done, error, confirm-cancel |
<WithdrawalButton> | data-withdrawal | withdrawal | none | withdrawn, error | refused |
<GiftForm> | data-gift | gift | none | checkout, error | ready, loading, empty, pending, error, sent |
<GiftList> | data-gift | gift | none | none | ready, loading, empty, error |
<ReferralCard> | data-referral | referral | none | copied, shared, error | ready, loading, error, refused |
<WorkspaceSettings> | data-settings | settings | workspaces, workspace, create, billing, credits, footer | workspace-created, workspace-switched, plan-canceled, plan-uncanceled, plan-resumed, change-canceled, plan-changed, plan-paused, topped-up, error | ready, loading, pending, error, refused, trialing, past-due, paused, canceling, changing, confirm-cancel |
<Gate> | data-quota | quota | default, fallback, placeholder, error | none | loading, ready, refused, error |
<BackendNotices> | none: only your slots | none | impersonation, maintenance, past-due, deletion, low-credits, gift, announcement | none | empty, ready |
<AccessDenied> | data-access | access | title, message, actions | signed-out, error | ready, pending, error |
<ReauthenticateDialog> | data-reauthenticate | reauthenticate | choose, verify-code, error, footer | reauthenticated, cancelled, error, step | empty, ready, verify-code, pending, error |
<ConnectionStatus> | data-connection | connection | default | none | empty, ready |
<UploadField> | data-upload | upload | default, file, error | update:modelValue, error | ready, uploading, claiming, done, refused, error |
<NotificationInbox> | data-notifications | notifications | notification, empty | none | ready, loading, empty, error, pending, refused |
<ContactForm> | data-contact | contact | fields, sent, error | sent, error | ready, pending, sent, error, refused |
<AppShell> | data-shell | shell | brand, nav, actions, default | none | ready, loading, refused |
<OnboardingFlow> | data-onboarding | onboarding | profile, workspace, teammates, plan | done, step | ready, workspace, teammates, plan, pending, done, error |
<ActivationChecklist> | data-activation | activation | task, congratulations | dismissed, completed | ready, loading, empty, pending, done, refused |
<HowDidYouHear> | data-source | source | option | done, error | ready, loading, pending, error, done, answered, refused |
<AiLabel> | data-ai-label | ai | default | none | ready, done |
<LegalProcessors> | data-legal | legal | none | none | ready |
<LegalStorage> | data-legal | legal | none | none | ready |
<LegalDetail> | data-legal | legal | none | none | ready, missing |
<LegalVersion> | data-legal | legal | none | none | ready, empty |
<LegalContactPoints> | data-legal | legal | none | none | ready, empty |
<LegalModeration> | data-legal | legal | none | none | ready |
A notice shows nothing when it has nothing to say (empty): what stays is an empty live region it appears in, so the region can stay mounted in a layout. A gate's states are which of your slots it renders.
By family
Each component has a section on its family's page: the page that renders it, its props, its slots, events and states, and its accessibility guarantee. The table below is generated from the module's registry; the forms have a page of their own.
| Component | Page | What it is |
|---|---|---|
<AuthForm> | Account | The complete passwordless sign-in flow (passkeys + email OTP) in one component: semantic markup where every element carries a data-auth attribute, built from parts (AuthFormChoose, AuthFormCode, …) that a same-named component of the app's replaces, and a slot per step. |
<WaitlistForm> | Account | Join the waitlist: the address, your questions, the launch-news box (unticked), then the sign-in code that proves the address, then the person's place, a link to share and a way to leave. |
<ReauthenticateDialog> | Account | "Confirm it's you": the dialog a sensitive action opens when the server refuses it as reauthentication_required. |
<ProfileSettings> | Account | Account profile: identity chrome (avatar initials, verification / role / workspace badges), display-name editing, the email change, by a code from each address, and, with @nuxtjs/i18n and two locales or more, the person's language, which their emails are written in. |
<SecuritySettings> | Account | Everything that guards the account: passkey management (add / inline rename / remove), active device sessions (revoke one / revoke others), the latest sign-ins from a new device (each signs its session out while it lasts), and signing this browser out. |
<ConsentPrompt> | Account | Asks for the consents a person has not given at their current version, and nothing else: the required kinds setupAccount({ consents }) declares after a version rises (the page waits behind a dialog until they are accepted), the age of an account that never answered the minimum age, and, while the app uses optional storage, one question per browser with Allow and Decline of equal weight. |
<OnboardingFlow> | Account | The first run a new account sees once, at /welcome: a few short steps. |
<ActivationChecklist> | Account | The first tasks that lead to value, with progress, for a page of your app: the tasks defineActivation declares, each ticked off when its event is recorded, "2 of 4 done", a link per open task and a Dismiss button. |
<HowDidYouHear> | Account | One optional question after sign-up: "How did you hear about us?". |
<AccountData> | Account | The account's data rights: download everything the app keeps of the account in one file, and delete the account, once the person typed their address to confirm it. |
<WorkspaceSettings> | Workspaces and admin | Workspace, plan, and credits management — the billing entity is the active workspace, so switching workspaces switches the subscription. |
<AcceptInvitation> | Workspaces and admin | Accept/decline UI for a workspace-invitation link (/accept-invitation?id=<invitationId> — the URL invitation emails point at). |
<AuditLog> | Workspaces and admin | The activity trail as a list, a page at a time: the signed-in account's own (scope="mine", the default), the active workspace's for its owners and admins (scope="workspace"), or every event for administrators (scope="all"). |
<PricingTable> | Billing | A complete pricing table, rendered on the server: plan cards from the live pricing (usePricing, the scaffolded getPricing), a monthly / yearly switch with what a year saves, subscribe / switch / cancel actions, credit packs compared credit for credit, a contact card, and a customer-portal link. |
<BillingCheckoutLink> | Billing | A link that opens a checkout for the caller's billing entity. |
<BillingPortalLink> | Billing | A link that opens the billing customer portal for the caller's billing entity, through the app's generateCustomerPortalUrl, on click. |
<BillingHistory> | Billing | The customer's past charges with their invoice links — every row read live from the billing provider (this package stores no order ledger), so what renders is what the provider will show on the invoice. |
<UsageHistory> | Billing | Metered consumption, event by event, straight from the provider's events API — the same records that drew the credit balance down. |
<UpgradePrompt> | Billing | What someone whose plan lacks a feature sees: a sentence naming the plans on sale that include it, in pricing order, and a link to the first of them on the pricing page (/pricing?plan=<key>). |
<CancelFlow> | Billing | Cancelling takes one step; a save offer is one optional step. |
<WithdrawalButton> | Billing | The EU withdrawal button (Consumer Rights Directive Art. 11a, from 2026-06-19): "Withdraw from contract here", for a purchase inside its 14 days, then a confirm step, "Confirm withdrawal". |
<GiftForm> | Billing | The gift form: a credit pack or a plan pass with its length (the lengths the plan is gifted for, at their live prices), the recipient's email, a note and a delivery day, then the purchaser's own checkout (useGifts().send). |
<GiftList> | Billing | The gifts a person received, each to claim into a workspace they manage, and the gifts they sent, each with what they can still do until it is claimed: resend its notice, address it to someone else, date it again, or cancel it for a refund behind a recent sign-in. |
<ReferralCard> | Billing | A person's referral link, with copy and share buttons and the disclosure of the reward: the link is /r/<code> on this site, made the first time the card is read. |
<AdminUsers> | Workspaces and admin | Every account of the app, for its administrators: a search by address, a page at a time (AdminUsersTable), and a drawer with one account in full (AdminUserDrawer): its role, its ban, its device sessions and workspaces, and "Impersonate". |
<AdminWorkspaces> | Workspaces and admin | Every workspace of the app, read-only, for its administrators: a search by name, a page at a time (AdminWorkspacesTable), and a drawer with one workspace's members and open invitations (AdminWorkspaceDrawer). |
<Gate> | Shell, gates and notices | 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). |
<BackendNotices> | Shell, gates and notices | 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. |
<AccessDenied> | Shell, gates and notices | 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. |
<ConnectionStatus> | Shell, gates and notices | 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. |
<UploadField> | Shell, gates and notices | A labelled file field that uploads through the upload URL setupStorage mints, then calls claim, where the deployment checks the file. |
<NotificationInbox> | Shell, gates and notices | 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. |
<ContactForm> | Shell, gates and notices | A contact form for visitors, and a feedback form for signed-in people: the same component. |
<AppShell> | Shell, gates and notices | 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. |
<AiLabel> | Shell, gates and notices | The visible "AI-generated" label the EU AI Act (Art. 50) asks for, beside an image or a text a model made. |
<LegalProcessors> | Shell, gates and notices | The processors an app on the package hands personal data to, as a table: who, what each handles, where, and its agreement. |
<LegalStorage> | Shell, gates and notices | 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. |
<LegalDetail> | Shell, gates and notices | 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. |
<LegalVersion> | Shell, gates and notices | 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. |
<LegalContactPoints> | Shell, gates and notices | 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. |
<LegalModeration> | Shell, gates and notices | 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. |
Workspaces and admin
Shell, gates and notices
The base module's components
These come from nuxt-convex-module and follow its guarantees, not the contract above:
| Component | What it is |
|---|---|
<Authenticated>, <Unauthenticated>, <AuthLoading>, <AuthRefreshing> | The auth-state gates: each renders only your slot |
<AuthBoundary> | The session-expiry boundary: it renders only your slots |
<StorageImage> | The base module's <ConvexImage> under a neutral name: an <img> with the attributes you pass, alt included, and your default (while the URL loads) and missing slots. It has no words of its own, so the alt text is yours |
In development, <ConvexImage>, <CheckoutLink> and <CustomerPortalLink> still render their replacement and warn once, naming it; a production build does not know those names.
Import aliases
The #backend aliases that point at your Convex functions directory and its generated files.
Account
The sign-in form, the waitlist form, the consent prompt, the profile and security settings and the account's data: one section per component, with its props, slots, events, states and accessibility.