# Viewing a record in a panel

One record, opened in a panel over the list it came from: its name and what it is in the header, and its sections in tabs.

## When it applies

- Someone opens a record from a list and reads or works on it without leaving the list.
- The CRM's opportunity workspace and contact workspace are this panel with parts of their own, like Pipeline and Task list. Those are on their own pages, not in the example screen.

## Components

- [Drawer](../components/drawer.md): The panel, with the record's name in `DrawerHeader`.
- [Tabs](../components/tabs.md): The record's sections, with their panels.
- [List](../components/list.md): Rows read one at a time, like activity.
- [Badge](../components/badge.md): The record's status.
- [Empty Value](../components/empty-value.md): A detail with nothing in it.

## Rules

- Do: Give `DrawerHeader` a `title` that names the record, like Supplier agreement renewal, and a `subtitle` for what it is.
- Do: Put long content in `DrawerBody`, which scrolls under the overlay scrollbar while the header stays put.
- Do: Put the panels in `TabsPanels`, so switching slides the new panel in and the height eases, and name the list with `aria-label`.
- Do: Show a detail that has no value with `EmptyValue` and a `label` that says what is missing, like "No due date".
- Don't: Turn off the drawer's `closeButton`. A panel needs a visible way out besides Escape and a swipe.
- Don't: Use `SectionHeader` or `PanelHeader` at the top of the drawer. `DrawerHeader` names the panel for screen readers and wires its close button.

## See it

- [Record panel](../screens/example-record-panel.md): A record opened in a panel over the list: 640 px on the right, starting under the header, with the record's name in its header and its sections in tabs.
