# Quote

> A quote for a deal: the editable items with optional extras and VAT, where the signatures stand, and the payment terms.

Pattern · Pro kit · [Live page](https://ui.twentyfirst.media/pro/patterns/QuoteScreen/)

A quote for a deal: the editable items with optional extras and VAT, where the signatures stand,
and the payment terms.

## Code

```tsx
import * as React from "react";
import {
  AppShell,
  Panel,
  PropertyList,
  QuoteBuilder,
  RecordHeader,
  SignatureStatus,
  Stagger,
} from "@twentyfirstmedia/pro";
import { CRM_NAV } from "./_crm";
import { LINES } from "./_sales";

/** A quote for a deal: line items with optional extras and VAT, terms, and where the signatures stand. */
export default function Preview() {
  const [lines, setLines] = React.useState(LINES);
  return (
    <AppShell
      navigation="sidebar"
      brand="Pilot CRM"
      sidebarGroups={CRM_NAV}
      active="quotes"
      user={{ name: "Mara Ellis", email: "mara@pilot.app" }}
      dock={false}
    >
      <Stagger className="tf-col" style={{ gap: 16 }}>
        <RecordHeader
          kind="deal"
          icon="file"
          title="Website relaunch"
          subtitle="Quote Q-2026-118 · Nordhafen Outdoor"
          status={{ label: "Sent", tone: "info" }}
          owner="Mara Ellis"
          actions={[
            { label: "Send again", icon: "send", primary: true },
            { label: "PDF", icon: "download" },
            { label: "Duplicate", icon: "copy" },
          ]}
          facts={[
            { label: "Valid until", value: "Dec 1, 2026" },
            { label: "Opened", value: "3 times" },
            { label: "Version", value: "2 of 2" },
          ]}
        />
        <Panel title="Items">
          <QuoteBuilder
            lines={lines}
            taxRate={19}
            onChange={setLines}
            onAdd={() =>
              setLines((all) => [
                ...all,
                { id: String(all.length + 1), name: "New item", quantity: 1, unitPrice: 0 },
              ])
            }
          />
        </Panel>
        <div
          className="tf-grid"
          style={
            {
              "--cols": "minmax(0, 1fr) minmax(0, 1fr)",
              "--cols-sm": "1fr",
              gap: 16,
              alignItems: "start",
            } as React.CSSProperties
          }
        >
          <Panel title="Signatures">
            <SignatureStatus
              document="Quote Q-2026-118.pdf"
              ordered
              expiresAt={new Date(2026, 11, 1)}
              onRemind={() => {}}
              signers={[
                {
                  id: "1",
                  name: "Mara Ellis",
                  role: "Agency",
                  state: "signed",
                  at: new Date(2026, 10, 13, 16, 2),
                },
                {
                  id: "2",
                  name: "Lena Hartmann",
                  role: "Client",
                  state: "viewed",
                  at: new Date(2026, 10, 16, 8, 40),
                },
              ]}
            />
          </Panel>
          <Panel title="Terms">
            <PropertyList
              fields={[
                { id: "pay", label: "Payment", value: "30% on order, 70% on launch" },
                { id: "due", label: "Due", value: "14 days net" },
                { id: "start", label: "Start", type: "date", value: new Date(2027, 0, 11) },
                { id: "contact", label: "Contact", type: "person", value: "Lena Hartmann" },
              ]}
            />
          </Panel>
        </div>
      </Stagger>
    </AppShell>
  );
}
```

## Props

### AppShell

| Prop | Type | Notes |
| --- | --- | --- |
| `active?` | `string` |  |
| `brand?` | `ReactNode` | The product name, or a node (a logo mark with the name; collapsed sidebars show it whole). |
| `brandDot?` | `boolean` | The status dot after the brand (default `true`); turn it off next to a logo of your own. |
| `tag?` | `string` |  |
| `nav?` | `NavItem[]` |  |
| `user?` | `{ name: string; email?: string }` |  |
| `onNavigate?` | `(label: string) => void` |  |
| `topExtra?` | `ReactNode` |  |
| `sheetStyle?` | `CSSProperties` |  |
| `contentKey?` | `string \| number` |  |
| `side?` | `ReactNode` |  |
| `dock?` | `boolean` |  |
| `dockItems?` | `DockProps["items"]` |  |
| `railTop?` | `RailItem[]` |  |
| `railBottom?` | `RailItem[]` |  |
| `fill?` | `boolean` | The shell is the whole page: at least the viewport's height (100dvh), no outer radius, the sheet fills the rest; on desktop the sidebar stays in view while the page scrolls, on phones the sheet starts right under the sidebar's bar. |
| `navigation?` | `"top" \| "sidebar"` |  |
| `sidebarGroups?` | `SidebarGroup[]` | With `navigation="sidebar"`: groups instead of the flat `nav` list. |
| `sidebar?` | `Partial<Omit<SidebarProps, "variant" \| "groups">>` | With `navigation="sidebar"`: more sidebar props (collapsed, storageKey, shortcut, linkAs …). |
| `workspaces?` | `WorkspaceSwitcherProps` | With `navigation="sidebar"`: the workspace switcher at the top instead of the brand. |
| `userMenu?` | `(MenuItem \| "-")[]` | The account menu's entries (with `navigation="sidebar"` at the foot of the sidebar). |
| `topbar?` | `boolean \| ReactNode` | With `navigation="sidebar"`: a bar across the top of the frame. The brand (or `workspaces`) moves into its start, as wide as the sidebar below it (expanded or collapsed); `topStart` follows it, `topEnd` sits at the end. Frame, bar and sidebar read as one L around the sheet. Content given here goes between `topStart` and `topEnd`. On phones the bar is the sidebar's bar (menu button and brand) with `topEnd` on the right and `topStart` behind an icon button. |
| `topStart?` | `ReactNode` | With `topbar`: right after the brand, e.g. a search field or a command palette trigger. |
| `topEnd?` | `ReactNode` | With `topbar`: at the end of the bar (buttons, menus); `topExtra` goes there too. |
| `topStartCompact?` | `ReactNode` | With `topbar` on phones: what stands in for `topStart` (default: an icon button that opens `topStart` over the bar). |
| `topStartIcon?` | `IconName` | The icon of that button (default `search`). |
| `topStartLabel?` | `string` | The accessible name of that button (default "Search"). |
| `children?` | `ReactNode` |  |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### PropertyList

| Prop | Type | Notes |
| --- | --- | --- |
| `fields` | `PropertyField[]` | Required |
| `onChange?` | `(id: string, value: string) => void` | Makes every field that is not `readOnly` editable in place. Values arrive as strings (tags comma-separated). |
| `label?` | `string` | Accessible name (default "Details"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### QuoteBuilder

| Prop | Type | Notes |
| --- | --- | --- |
| `lines` | `QuoteLine[]` | Required |
| `onChange?` | `(lines: QuoteLine[]) => void` | Makes quantity, price and discount editable and optional lines tickable. |
| `onAdd?` | `() => void` | Shows "Add line". |
| `onRemove?` | `(id: string) => void` | Shows a remove button per line. |
| `currency?` | `string` |  |
| `taxRate?` | `number` | VAT or sales tax in percent (e.g. 19); no tax row when unset. |
| `label?` | `string` | Accessible name (default "Quote"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### RecordHeader

| Prop | Type | Notes |
| --- | --- | --- |
| `kind?` | `"person" \| "company" \| "deal" \| "matter"` | Sets the default picture: a person's initials, a company's monogram, a deal or matter icon. |
| `title` | `string` | Required |
| `subtitle?` | `ReactNode` | "Head of Operations at Nordhafen", "Matter 2026/0412". |
| `avatar?` | `ReactNode` | Your own picture (a photo, a logo); default from `kind`. |
| `icon?` | `IconName` |  |
| `status?` | `{ label: string; tone?: Tone }` | The stage or status as a badge. |
| `tags?` | `string[]` |  |
| `owner?` | `string` | Who looks after the record. |
| `facts?` | `{ label: string; value: ReactNode }[]` | Key facts in a row: value, phone, close date … |
| `actions?` | `{ label: string; icon?: IconName; onClick?: () => void; primary?: boolean }[]` | Quick actions: Call, Email, Meeting, Note … The first `primary` one is the main button. |
| `menu?` | `ReactNode` | More actions on the right (a menu button). |
| `surface?` | `Surface` |  |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### SignatureStatus

| Prop | Type | Notes |
| --- | --- | --- |
| `document` | `string` | The document out for signature. |
| `signers` | `Signer[]` | Required |
| `ordered?` | `boolean` | Signers sign one after the other (numbers them). |
| `expiresAt?` | `Date \| string \| number` |  |
| `onRemind?` | `(id: string) => void` | Shows "Remind" for signers who have it but have not signed. |
| `onVoid?` | `() => void` | Shows "Void" to withdraw the document. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
