Skip to content

Summary Fly-in

A record’s summary slides in from a list row or card. Page and FlyIn own the shell: the slide, the header with its accent, the close button and the pinned footer. FlyInSummary and its parts fill the body, so every summary reads the same.

Live demo

The panel here is the body only; in the app it sits inside Page’s fly-in slot.

$12,950.00TotalSent
Vendor
Core & Main
Job
Wells Branch Senior Living
Needed by
Oct 1
Buyer
Bea Hart

Details

Job type
Commercial
Start
Not scheduled
In stage
12 days
City
Austin

Lines

  • 4 in. ductile iron pipe$6,400.00
  • Gate valves, 6 in.$3,120.00
  • Fire hydrant, 5-1/4 in.$2,310.00
  • + 2 more lines

Behavior

  • FlyInTotal is the big figure with its label, and an aside on the right (a status, “of $12,000 committed”).

  • FlyInFacts is a two-column grid of labelled facts; late: true paints a value in the danger colour. bordered draws it as a bordered grid with dividers, as the Jobs summary’s Details does.

  • FlyInSection is an overline heading over its content, and FlyInLines is a short list of label and value, ending with a dim ”+ N more lines”.

  • For a progress track, use StatusTimeline inside a section. Action buttons go in the fly-in’s footer.

  • A press on the page outside the fly-in closes it, on every fly-in, with no call-site change. A press inside it, or on a menu, popover, tooltip or dialog it opened, does not. Pressing another card closes the panel and the card’s own click then opens that card. Escape and the close button still close it. A page that must keep its fly-in open passes closeOnOutsidePress: false.

Usage

import { FlyInSummary, FlyInTotal, FlyInFacts, FlyInSection, FlyInLines } from "@beacon/design-system";
flyIn: {
open,
title: "PO-1041",
onClose,
footer: <Button onClick={openRecord}>Open</Button>,
content: (
<FlyInSummary>
<FlyInTotal label="Total" value="$4,820.00" aside="Draft" />
<FlyInFacts items={[{ label: "Vendor", value: "Ferguson" }]} />
<FlyInSection heading="Lines">
<FlyInLines items={lines} more="+ 2 more lines" />
</FlyInSection>
</FlyInSummary>
),
}