For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/patterns/detail-drawer.md.

Detail drawer

Components: Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerBody, DrawerResizeHandle, Attribute, AttributeLabel

+30 more

AttributeValue, Heading, Separator, HStack, VStack, Tabs, TabsList, TabsTrigger, TabsContent, TabsLineActions, NumericBadge, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, Button, InlineCodeSnippet, Tag, FormatDateTime, Table, EmptyState, EmptyStateMessage, EmptyStateTitle, Alert, AlertContent, AlertTitle, AlertControls, Tooltip, Dialog

A detail drawer is a Drawer with no footer. It shows one entity as Attribute rows, titled sections and an optional nested Table.

When to use

NeedUseNot
Read-only details of one rowThis pattern, opened from Table onMasterCellClickA new page, a Dialog
Edit several fieldsA separate edit drawer or dialog. See Create and edit formsInputs inside the detail drawer
Edit one field in placeInlineEdit inside AttributeValueA form in the drawer
Actions on the entityOne "Actions" DropdownMenu in DrawerHeaderSeveral header buttons, a footer
Related collections (roles, rules, members)Tabs with NumericBadge counts, one Table per tabStacked tables with no tabs
A few titled groups of attributesHeading sections split by SeparatorAccordion, a Card per group
Confirm a destructive actionA Dialog inside DrawerContent. See Confirmation dialogswindow.confirm
Keep the list usable while openmodal={false} overlay={false} closeOnOutsideClick={false}Default props

Rules

Drawer

  • Mount one controlled Drawer (open, onOpenChange) for the list. Never one per row.
  • Open it from the list Table onMasterCellClick; mark the row with activeRowId. Row-menu clicks do not open it.
  • Keep the last entity in state after close so content does not blank. To reset state after close, use onExitComplete: it fires once the exit animation ends.
  • Pass width={640}. Use 700 (the Figma frame) only if design confirms it. width is read once on mount.
  • If resizable, put DrawerResizeHandle first in DrawerContent (400–1130px).
  • Never add a DrawerFooter or your own close button.
  • In tests, pass data-testid to Drawer. Never select by data-slot.

Header actions

  • One DropdownMenu in DrawerHeader, trigger Button variant='outline' color='neutral' size='small' "Actions" + ChevronDown.
  • Order: edit, state changes, "Go to …" links, DropdownMenuSeparator, destructive items.
  • Destructive items use variant='destructive' and name the entity: "Delete provider".
  • Keep the built-in 12px before the close X, though Figma shows 4px.

Spacing

  • DrawerBody owns the 24px gutter. Never pad inside it or pass className to DrawerHeader/DrawerBody.
  • Attribute rows: VStack gap={6} className='pb-8'. Sections: Separator spacing={4}. Never a Separator above Tabs: TabsList draws its own line.
  • Section header: HStack justify='between' align='center' className='py-8', Heading as='h3' size='md' weight='medium', optional Button size='small'.
  • Full-width tabs: <div className='-mx-24'> around TabsList, not its className. Table 16px from the edge: <div className='-mx-8'> around Table, never on it. No other negative margins.

Attributes

  • Always pass orientation='horizontal'; the default is vertical.
  • One AttributeLabel width per drawer: 140 matches Figma; up to 256 for long labels. Never wrap a label.
  • Two columns: grid grid-cols-2 gap-x-8 gap-y-6, default label width.
  • Section help: an Info icon in a Tooltip after the heading.
DataValueNot
Plain textThe string as the AttributeValue childA Text with your own size
ID, URL, claim, scope, pathInlineCodeSnippet code={value} size='md'Code, a monospace span
Several codesSeveral InlineCodeSnippet in HStack gap={4}One joined string
Role, tag, labelTagBadge, plain text
TimestampFormatDateTime format='datetime' layout='inline'toLocaleString()
Secret"Set — never shown"Dots, a masked input
Missing valueAttribute isEmptyN/A, 0, your own dash
Icon with textHStack gap={6} align='center'An img with your own margin

InlineCodeSnippet copies on click; copyable={false} turns that off.

Tabs and tables

  • Keep Tabs in DrawerBody to scroll with the attributes. Pinned tabs: Tabs asChild around DrawerHeader, TabsList, DrawerBody (Drawer WithTabs story); attributes then go in each TabsContent.
  • Tab action: Button size='small' in TabsLineActions.
  • Nested tables follow Entity table. Never use TableActionBar in a drawer: it renders underneath.

Does not exist: DRAWER_SIZES, a size prop on Drawer, DrawerActions, DrawerHeaderActions, AttributeGroup, AttributeList, DescriptionList, a section component, fullBleed on TabsList or Table.

Examples

The list opens one shared drawer from the master cell.

Click a provider name: one shared, non-modal drawer opens and the row stays marked. The header has a single "Actions" menu; the body has horizontal attributes (a code value, a secret, a timestamp), then full-width tabs with counts, each with an inset nested table. Google Workspace has no rules, so its table keeps the headers and shows a short empty state.

The drawer shell with a resize handle and the header actions menu.

Drag the left edge to resize between 400 and 1130px; onResizeEnd gets the final width to persist. The close X comes built in, so there is no footer and no close button of your own.

Attribute rows with a code value, a secret, a missing value and a timestamp.

Every row is horizontal with the same 140px label. Entra ID has no default role, so that row stays and shows the empty marker; the codes copy on click.

A section with a title and an action.

The first group needs no title. Each later group starts with a Separator and a header row; the action applies to that section only.

Full-width tabs with a count and an inset nested table that stays visible when empty.

Google Workspace has no rules yet: the table keeps its headers and shows a one-line empty state with no action, since "Create rule" already sits on the tab line.

States

StateShowExample component
Entity loadingloading on every Attribute (skeleton label is 100 wide whatever width). Not a Loader over the bodyAttribute
Nested table loadingisLoading with skeletonCount={3}Table
Nested collection emptyKeep headers; type='collection-empty' as a direct Table child when rows.length === 0 && !isLoading. Title and description only, no EmptyStateActions. Not TableEmptyState (too tall)EmptyState
Field has no valueisEmpty; never hide the rowAttribute
Viewing an old versioncolor='info' first in DrawerBody, "Back to current" and "Restore" in AlertControls; disable header actionsAlert
Row open in the draweractiveRowId={selectedId}; not a row classNameTable
Action runningloading on its button, then a toast; keep the drawer openButton

The entity is loading.

The entity is still loading: every Attribute shows its skeleton and the nested table shows three skeleton rows. No Loader over the body, and the header keeps its title.

Viewing an old version.

Viewing an old version: an info Alert comes first in the body with "Back to current" and "Restore", and the header "Actions" menu is disabled until the reader goes back.

What your app owns

You ownThe DS owns
selectedId, open, fetchingAnimation, focus trap, close X
Width; persisting it via onResizeEndResize drag and limits
Attributes, sections, tabs, label widthRow height, truncation, skeletons
Menu items and handlersMenu positioning and keyboard
Section headers, grid, bleed offsetsBody gutter, header spacing
Confirmation, version restoreNothing; compose Dialog, Alert