Skip to content
PreviewSwitch spaces to compare personal, owner and member billing.
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, AppSwitcher, SessionMenu,
} from "@arcadia/ui";

function AccountBillingFrame({ initialSpace = null, headOpen = false, container }: {
  initialSpace?: string | null;
  headOpen?: boolean;
  container?: HTMLElement;
}) {
  const [space, setSpace] = useState<string | null>(initialSpace);
  const [theme, setTheme] = useState<ThemePreference>("system");
  const team = TEAMS.find((t) => t.id === space) ?? null;
  const mode = !team ? "personal" : team.role === "owner" ? "team-owner" : "team-member";
  const crumbs = team
    ? [{ label: team.name, href: HERE }, { label: "Billing" }]
    : [{ label: "Billing" }];
  const nav = usePreviewSidebar(container);
  const sidebar = <AppSidebar aria-label="Account" groups={accountSidebarGroups(space)}
    head={<SpaceHead space={space} onSpaceChange={(next) => { setSpace(next); nav.close(); }} open={headOpen} container={container} />} />;
  return (
    <AppFrame inert={nav.shown}
      rootStyle={page.frame}
      bar={(
        <AppBar
          product="Account"
          home={HERE}
          arcadiaHome={HERE}
          crumbs={<AppCrumbs items={crumbs} />}
          end={nav.toggle}
          switcher={<AppSwitcher products={APPS} current="Account" />}
          session={(
            <SessionMenu
              name={PERSON.name}
              address={PERSON.address}
              theme={theme}
              onThemeChange={setTheme}
              onSignOut={() => {}}
              teams={TEAMS}
              personal
              space={space}
              spaceHref={spaceHref}
              newTeamHref={HERE}
            />
          )}
        />
      )}
      sidebar={!nav.compact && sidebar}
    >
      <AppPanel title="Billing" viewKey={space ?? "personal"}>
        <BillingBody key={space ?? "personal"} mode={mode} container={container} />
      </AppPanel>
      {nav.sheet(sidebar)}
    </AppFrame>
  );
}

TSX
import {
  AppBar, AppFrame, AppPanel, AppSidebar, Button, SettingsGroup, SettingsPage,
  SettingsRow,
} from "@arcadia/ui";

<AppFrame
  bar={<AppBar product="Account" home="/" arcadiaHome="https://arcadia.is" switcher={switcher} session={session} />}
  sidebar={<AppSidebar aria-label="Account" head={spaceHead} groups={groups} />}
>
  <AppPanel title="Billing">
    <SettingsPage>
      <SettingsGroup label="Plan" action={<Button size="sm" variant="secondary">Redeem a code</Button>}>
        <SettingsRow label="Subscription" meta="Next charge on 1 Dec 2026" control={<Button size="sm" variant="primary">Change plan</Button>} />
      </SettingsGroup>
    </SettingsPage>
  </AppPanel>
</AppFrame>

Billing belongs to the Arcadia account, not an individual product.

Plans, seats, payment methods, billing details and invoices stay together.

Show prices in billing, not in the product.

Examples

Space switcher

The space switcher puts the personal account before teams.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, AppSwitcher, SessionMenu,
} from "@arcadia/ui";

function AccountBillingFrame({ initialSpace = null, headOpen = false, container }: {
  initialSpace?: string | null;
  headOpen?: boolean;
  container?: HTMLElement;
}) {
  const [space, setSpace] = useState<string | null>(initialSpace);
  const [theme, setTheme] = useState<ThemePreference>("system");
  const team = TEAMS.find((t) => t.id === space) ?? null;
  const mode = !team ? "personal" : team.role === "owner" ? "team-owner" : "team-member";
  const crumbs = team
    ? [{ label: team.name, href: HERE }, { label: "Billing" }]
    : [{ label: "Billing" }];
  const nav = usePreviewSidebar(container);
  const sidebar = <AppSidebar aria-label="Account" groups={accountSidebarGroups(space)}
    head={<SpaceHead space={space} onSpaceChange={(next) => { setSpace(next); nav.close(); }} open={headOpen} container={container} />} />;
  return (
    <AppFrame inert={nav.shown}
      rootStyle={page.frame}
      bar={(
        <AppBar
          product="Account"
          home={HERE}
          arcadiaHome={HERE}
          crumbs={<AppCrumbs items={crumbs} />}
          end={nav.toggle}
          switcher={<AppSwitcher products={APPS} current="Account" />}
          session={(
            <SessionMenu
              name={PERSON.name}
              address={PERSON.address}
              theme={theme}
              onThemeChange={setTheme}
              onSignOut={() => {}}
              teams={TEAMS}
              personal
              space={space}
              spaceHref={spaceHref}
              newTeamHref={HERE}
            />
          )}
        />
      )}
      sidebar={!nav.compact && sidebar}
    >
      <AppPanel title="Billing" viewKey={space ?? "personal"}>
        <BillingBody key={space ?? "personal"} mode={mode} container={container} />
      </AppPanel>
      {nav.sheet(sidebar)}
    </AppFrame>
  );
}

Personal overview

See the next charge and manage the saved payment method.

Preview

Plan

Subscription Next charge 1 Dec 2026

Payment methods

Visa ending in 4821 Expires 08/2028
Default
Mastercard ending in 7304 Expires 11/2027

Billing details

Name
Nora Lind
Invoice email
nora@example.com
Address
18 Harbor Way, Suite 4B, Portland OR 97201, United States
<BillingBody mode="personal" />

Team owner

Owners manage seats, payment methods, billing details and invoices.

Preview

Plan

Subscription Next charge 1 Dec 2026
Seats The next invoice adjusts as members join or leave
6

Payment methods

Visa ending in 9152 Expires 05/2029
Default

Add another payment method before removing the card used for an active plan.

Billing details

Name
Northwind Labs Ltd
Invoice email
accounts@northwind.example
Address
42 Barrow Street, Dublin D04 W5K8, Ireland
Tax number
EU VAT IE3692581T
<BillingBody mode="team-owner" />

Team member

Members can view the plan and seats but cannot edit billing.

Preview

Plan

Subscription Covered by Fieldwork
Seats
14

Team owners manage plans, payment methods, billing details and invoices.

<BillingBody mode="team-member" />

Invoices

Filter invoices by period and download them from one table.

Preview
Invoice Amount Receipt
Seat added, 1 member
20 Nov 2026Open
$14.00
Renewal, 6 seats
1 Nov 2026Paid
$180.00
Renewal, 5 seats
1 Oct 2026Paid
$150.00
Renewal, 5 seats
1 Sep 2026Failed
$150.00
Seat adjustment
15 Aug 2026Refunded
$30.00
Total paid
$330.00
import { useState } from "react";
import {
  Button, EmptyState, IconButton, Menu, MenuContent, MenuRadioGroup,
  MenuRadioItem, MenuTrigger, PickerTrigger, Table,
} from "@arcadia/ui";

function InvoicesView({ invoices = TEAM_INVOICES }: { invoices?: readonly InvoiceRow[] }) {
  const [period, setPeriod] = useState<InvoicePeriod>("all");
  const filtered = invoices.filter((row) => row.period.includes(period));
  const paidTotal = filtered.filter((row) => row.state === "paid").reduce((sum, row) => sum + row.cents, 0);
  const periodLabel = PERIODS.find((p) => p.value === period)?.label ?? "All periods";
  return (
    <div {...sx("billing-invoices", page.stack)}>
      <div {...sx("billing-invoices-bar", page.bar)}>
        <Menu>
          <MenuTrigger render={<PickerTrigger label={periodLabel} aria-label="Filter invoices by period" />} />
          <MenuContent align="start">
            <MenuRadioGroup value={period} onValueChange={(v) => setPeriod(v as InvoicePeriod)}>
              {PERIODS.map((p) => <MenuRadioItem key={p.value} value={p.value}>{p.label}</MenuRadioItem>)}
            </MenuRadioGroup>
          </MenuContent>
        </Menu>
        <div {...sx(null, page.barEnd)}>
          <Button size="sm" variant="secondary" icon="download" disabled={!filtered.length}
            render={filtered.length ? <a href={invoiceFile(filtered)} download="sample-invoices.csv" /> : undefined}
          >Download all</Button>
        </div>
      </div>
      {filtered.length === 0 ? (
        <EmptyState framed icon="file-text" title="No invoices in this period" />
      ) : (
        <Table
          aria-label="Invoices" rootStyle={page.invoiceTable}
          columns={[
            { key: "invoice", label: "Invoice", grow: true, rowHeader: true },
            { key: "amount", label: "Amount", align: "end" },
            { key: "receipt", label: "Receipt", align: "end" },
          ]}
          rows={filtered.map((row) => ({
            key: row.id,
            cells: {
              invoice: <span>{row.description}</span>,
              amount: money(row.cents),
              receipt: <IconButton icon="download" label={`Download ${row.reference}`} size="sm" tone="muted" render={<a href={invoiceFile([row])} download={row.reference + ".csv"} />} />,
            },
            notes: {
              invoice: <span {...sx("billing-invoice-meta", page.invoiceMeta)}>{readout(row.date)}{invoiceStateMark(row.state)}</span>,
            },
          }))}
          footer={{ invoice: "Total paid", amount: money(paidTotal) }}
        />
      )}
    </div>
  );
}

Plan states

Mark exceptions; an active plan needs no extra badge.

Preview

Plan

Subscription

Paid plans are by invitation. If Arcadia gave you a code, redeem it above.

Invitation only: payment is unavailable

Plan

Offer $0.00 for 12 months
Given by Arcadia
Offer: accept the plan

Plan

Subscription Access continues until 1 Dec 2026, then ends
Ends on 1 Dec 2026
Cancelled: keep the plan before it ends

Plan

Subscription Next retry on 24 Nov 2026
Payment failed
Payment failed: update the payment method
import {
  Button, SettingsGroup, Notice, SettingsPage, SettingsRow,
} from "@arcadia/ui";

<SettingsPage>
  <SettingsGroup label="Plan" action={<Button size="sm" variant="secondary">Redeem a code</Button>}>
    <SettingsRow label="Subscription" />
    <Notice id="invitation-only-billing">Paid plans are by invitation. If Arcadia gave you a code, redeem it above.</Notice>
  </SettingsGroup>
</SettingsPage>

Empty states

Show one empty state per region without placeholder rows.

Preview

Payment methods

No payment method saved

No invoices yet

import {
  Button, EmptyState, SettingsGroup, SettingsPage, SettingsRow,
} from "@arcadia/ui";

<div {...sx("billing-empty", page.stack)}>
  <SettingsPage>
    <SettingsGroup label="Payment methods" action={<Button size="sm" variant="secondary">Add payment method</Button>}>
      <SettingsRow label="No payment method saved" dim />
    </SettingsGroup>
  </SettingsPage>
  <SettingsPage>
    <EmptyState icon="file-text" title="No invoices yet" />
  </SettingsPage>
</div>

Redeem a code

Redeem ARC-FOUNDER-12 to preview the offer before accepting it.

Preview
Invalid code

Plan

Subscription Paid plans are by invitation
Redeem a code
import { useState } from "react";
import { Button, SettingsGroup, SettingsPage, SettingsRow } from "@arcadia/ui";

function RedeemCodeLive() {
  const [open, setOpen] = useState(false);
  const [offer, setOffer] = useState<"none" | "ready" | "accepted">("none");
  return (
    <SettingsPage>
      <SettingsGroup
        label="Plan"
        action={offer === "none" ? <Button size="sm" variant="secondary" onClick={() => setOpen(true)}>Redeem a code</Button> : undefined}
      >
        {offer === "ready"
          ? <PlanOffer onAccept={() => setOffer("accepted")} />
          : <SettingsRow label="Subscription" meta={offer === "accepted" ? <>Offer accepted: {money(0)} for 12 months</> : "Paid plans are by invitation"} />}
      </SettingsGroup>
      <RedeemCodeDialog open={open} onOpenChange={setOpen} onAccepted={() => setOffer("ready")} />
    </SettingsPage>
  );
}

Add payment method

Provider fields stay together in one marked area.

Preview
Provider fields
Open the dialog
import { useState } from "react";
import { Button } from "@arcadia/ui";

function AddPaymentMethod() {
  const [open, setOpen] = useState(false);
  return (
    <>
      <Button variant="secondary" onClick={() => setOpen(true)}>Add payment method</Button>
      <AddPaymentMethodDialog open={open} onOpenChange={setOpen} />
    </>
  );
}

Edit billing details

Edit invoice identity and address in one dialog.

Preview
Optional fields are labelled
Open the dialog
import { useState } from "react";
import { Button, FormDialog } from "@arcadia/ui";

function EditBillingDetails() {
  const [open, setOpen] = useState(false);
  const [saved, setSaved] = useState<BillingDetailsData>(TEAM_DETAILS);
  const [draft, setDraft] = useState<BillingDetailsData>(TEAM_DETAILS);
  return (
    <>
      <Button variant="secondary" onClick={() => { setDraft(saved); setOpen(true); }}>Edit billing details</Button>
      <FormDialog
        open={open}
        onOpenChange={setOpen}
        title="Edit billing details"
        description="Shown on future invoices and used to determine tax."
        size="lg"
        submitLabel="Save details"
        onSubmit={() => { setSaved(draft); }}
      >
        <BillingDetailsFormFields draft={draft} setDraft={setDraft} />
      </FormDialog>
    </>
  );
}

Provider fields

Map the kit tokens to embedded fields in both themes.

PropertyKit token
Input text
Label
Placeholder
Field background
Dialog background
Input edge
Divider
Focus ring
Corner radius
Font family
Input text size
Label and error size
Control height
Inline field padding
Invalid ink
Invalid surface

The account sidebar and main content are separate landmarks. Only controls available to the current role enter the tab order.

Invoices use a semantic table. The status includes a label, and each download names its invoice.

Tab
Moves through the sidebar head, nav rows, tabs, controls and table actions
Enter
Opens a menu, submits an open dialog or activates a button
Escape
Closes the space switcher menu, row menu or dialog and returns focus