# Broker Listing

> A listing in a broker's CRM: the property with price and size, matching buyers with the exposé action, viewings with feedback, the property details with the energy class, and the history.

Pattern · Halo kit · [Live page](https://ui.twentyfirst.media/halo/patterns/BrokerListingScreen/)

A listing in a broker's CRM: the property with price and size, matching buyers with the exposé
action, viewings with feedback, the property details with the energy class, and the history.

## Code

```tsx
import * as React from "react";
import {
  AppShell,
  EnergyClass,
  MatchList,
  Panel,
  PropertyList,
  RecordHeader,
  RecordTimeline,
  Stagger,
  ViewingList,
} from "@twentyfirstmedia/halo";
import type { RecordEntry } from "@twentyfirstmedia/halo";
import { NOW } from "./_crm";
import { BROKER_NAV, BUYERS, VIEWINGS } from "./_industry";

const ENTRIES: RecordEntry[] = [
  {
    id: "1",
    type: "email",
    title: "Exposé sent to Familie Kaya",
    at: new Date(2026, 10, 16, 8, 50),
    actor: "Mara Ellis",
  },
  {
    id: "2",
    type: "call",
    title: "Owner: lowest price €610,000",
    at: new Date(2026, 10, 15, 16, 20),
    actor: "Mara Ellis",
    meta: "6 min",
  },
  {
    id: "3",
    type: "stage",
    title: "Price reduced from €649,000 to €629,000",
    at: new Date(2026, 10, 10, 9, 0),
    actor: "Mara Ellis",
  },
  {
    id: "4",
    type: "document",
    title: "Energy certificate uploaded",
    at: new Date(2026, 10, 3, 14, 0),
    actor: "Lea Brandt",
  },
];

/** A listing for a broker: the property, matching buyers, viewings with feedback and the history. */
export default function Preview() {
  return (
    <AppShell
      navigation="sidebar"
      brand="Hafen Immobilien"
      sidebarGroups={BROKER_NAV}
      active="listings"
      user={{ name: "Mara Ellis", email: "mara@hafen-immobilien.de" }}
      dock={false}
    >
      <Stagger className="tf-col" style={{ gap: 16 }}>
        <RecordHeader
          kind="deal"
          icon="home"
          title="3-room flat with balcony"
          subtitle="Isestraße 61, 2nd floor · 20149 Hamburg-Eppendorf"
          status={{ label: "Active", tone: "success" }}
          tags={["Sale", "Exclusive"]}
          owner="Mara Ellis"
          actions={[
            { label: "Send exposé", icon: "send", primary: true },
            { label: "Plan viewing", icon: "calendar" },
          ]}
          facts={[
            { label: "Price", value: "€629,000" },
            { label: "Living space", value: "84 m²" },
            { label: "Rooms", value: "3" },
            { label: "Online for", value: "23 days" },
          ]}
        />
        <Panel title="Matching buyers" subtitle="3 of 41 in your buyer list">
          <MatchList matches={BUYERS} contactLabel="Send exposé" onContact={() => {}} />
        </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="Viewings">
            <ViewingList viewings={VIEWINGS} onConfirm={() => {}} onFeedback={() => {}} />
          </Panel>
          <Panel title="Property">
            <PropertyList
              fields={[
                { id: "built", label: "Built", value: "1908, renovated 2019" },
                { id: "floor", label: "Floor", value: "2 of 4, no lift" },
                { id: "fee", label: "Service charge", type: "money", value: 412 },
                { id: "comm", label: "Buyer commission", type: "percent", value: 3.57 },
                { id: "free", label: "Available", type: "date", value: new Date(2027, 1, 1) },
              ]}
            />
            <EnergyClass value="C" kwh={96} />
          </Panel>
        </div>
        <Panel title="History">
          <RecordTimeline entries={ENTRIES} now={NOW} filters={false} />
        </Panel>
      </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. |

### EnergyClass

| Prop | Type | Notes |
| --- | --- | --- |
| `value` | `string` | Required |
| `kwh?` | `number` |  |
| `kind?` | `string` |  |
| `scale?` | `string[]` |  |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### MatchList

| Prop | Type | Notes |
| --- | --- | --- |
| `matches` | `Match[]` | Required |
| `onOpen?` | `(id: string) => void` | Makes the name a button. |
| `onContact?` | `(id: string) => void` | Shows the contact action per match ("Send exposé"). |
| `contactLabel?` | `string` | Text of the contact action (default "Contact"). |
| `label?` | `string` | Accessible name (default "Matches"). |
| `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. |

### 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. |

### RecordTimeline

| Prop | Type | Notes |
| --- | --- | --- |
| `entries` | `RecordEntry[]` | Required |
| `now?` | `Date \| string \| number` | "Now" for the day headings; pass it so server and client render the same. |
| `filters?` | `boolean` | Chips that filter by type (default true). |
| `onAdd?` | `(type: "note" \| "call" \| "task", text: string) => void` | Adds the composer for a note, a logged call or a task. |
| `label?` | `string` | Accessible name (default "Activity"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### ViewingList

| Prop | Type | Notes |
| --- | --- | --- |
| `viewings` | `Viewing[]` | Required |
| `onConfirm?` | `(id: string) => void` | Shows "Confirm" on requested viewings. |
| `onFeedback?` | `(id: string) => void` | Shows "Add feedback" on done viewings without feedback. |
| `label?` | `string` | Accessible name (default "Viewings"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
