Skip to content

Patterns

The record screen

A record screen shows one thing people work on, an order, a person or a job, centred at up to 1200px with its properties in a 20rem side column. The screen type sets the width, the header, what scrolls and where the decision goes, and a slot it does not have is a type error.

By Bohuslav PoláčekChecked

packages/kit/src/components/screen.tsx
export type RecordScreenProps = Base & {
  archetype: "record";
  /** The record's physical form (a receipt, a vehicle), if it has one. */
  object?: ReactNode;
  /** The same by data: the entity says what it physically is and the Screen draws it (`PhysicalObject`). */
  physical?: PhysicalObjectProps;
  /** `PropertyList` and the facts: the side column. */
  properties: ReactNode;
  /**
   * The decision card (approve, reject, the next step): at the top of the side column from 1024px, and above the
   * title on a phone, where the decision a person came for comes first (AGENTS.md, "Responsive").
   */
  decision?: ReactNode;
  /** Tabs (overview, items, activity) and their content. */
  children: ReactNode;
};
The record screen's slots in the kit, read from the repository when the site was built.

Anatomy

  • Header: the title is what people call the record (the customer, the person), its number a small eyebrow above it, the status beside it. One primary action, at most two secondary ones, the rest behind "…", and no description.
  • Content: tabs, such as overview, items and activity, with their content.
  • Side column: the properties and the facts, 20rem wide beside the content from 1024px.
  • Decision: the card that approves, rejects or names the next step, at the top of the side column; on a phone it comes before the title.
  • Object: the record's physical form when it has one, a receipt or a vehicle.

How a record opens

From a list, a record opens in a side panel first (RecordPeek), and the corner button expands it to this full screen and back. With room, the panel moves the page aside and the table hides its less important columns by its own width.

What scrolls

The page itself never scrolls; exactly one region does. Under 1024px the record is one column, and its title scrolls with the record under the decision. See it on an order record.

Example apps with a record screen

Which example apps render a record screen, and the record flows each one uses.Read from the demo's source when the site was built: 9 of 9 example apps render a <Screen archetype="record">. Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline.

Questions

Why is the record's number not its title?

People call an order by its customer and a job by its client, so the title is that name and the number is a small eyebrow above it, never set in tabular figures.

Where do approve and reject go?

On a card at the top of the side column from 1024px, and above the title on a phone, where the decision a person came for comes first. Never in a coloured banner.

Can a record screen have a description under its title?

No. The header has no slot for one, and a slot the screen type does not have is a type error, so facts go into the content.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app