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/complex-drawer.md.

Complex drawer

Components: Drawer, DrawerContent, DrawerHeader, DrawerBody, DrawerResizeHandle, Heading, Text, Badge

+60 more

Tabs, TabsList, TabsTrigger, Tooltip, TooltipTrigger, TooltipContent, Button, Attribute, AttributeLabel, AttributeValue, FormatDateTime, Ip, IpCountry, IpAddress, Chart, ChartHeader, ChartTitle, LineChart, LineChartBody, LineChartGrid, LineChartXAxis, LineChartYAxis, LineChartLine, LineChartTooltip, LineChartEmpty, BarList, BarListItem, BarListBar, BarListLabel, BarListValue, BarListPercent, BarListSkeleton, PieChart, PieChartDonut, PieChartCenter, PieChartCenterValue, PieChartCenterLabel, PieChartLegend, PieChartLegendItem, PieChartLegendValue, PieChartLegendPercent, LegendDot, PieChartSkeleton, FilterInput, ScrollArea, ScrollAreaViewport, ScrollAreaContent, ScrollAreaScrollbar, HttpMethod, ResponseCode, InlineCodeSnippet, CodeSnippetRoot, CodeSnippetContent, CodeSnippetLineNumbers, CodeSnippetCode, Separator, DropdownMenu, Table, HStack, VStack

A complex drawer is a wide Detail drawer for something that happened many times: an attack, an incident, an API session. The header summarises it, Overview shows attributes and charts, and a records tab splits into a list and a detail.

When to use

NeedUseNot
One configured entity (a provider, a rule)Detail drawer, 640pxThis pattern
One event with counts over time and many recordsThis pattern, 1064pxA new page, a Dialog
How the event endedStatus Badge variant='dotted' on the summary lineA status row only in the body
Counts ("0/55 blocked", "2 IPs across 1 country")Secondary Text on the summary line, split by ·Metric cards
Copy or share a linkIcon Button in a Tooltip, before the close XAn "Actions" menu with one item
Volume over timeLineChart in a full-width ChartA table of hours
Top N of somethingBarList in a ChartA nested Table
Share by class (status codes)PieChart donut in a ChartBarList
The event's own records (requests, hits)A tab with a list on the left and the selected record on the rightA Table under the charts, a nested drawer

Rules

This page is about layout. Values inside it (dates, IPs, codes, badges) follow Entity table and Detail drawer.

Drawer

  • Everything in Detail drawer still applies: one controlled non-modal Drawer, opened from onMasterCellClick, activeRowId, no footer.
  • Pass width={1064}; put DrawerResizeHandle first and persist onResizeEnd.
  • Reset the tab to Overview and clear the selected record when another row opens the drawer.

Header

  • DrawerHeader › HStack align='start' justify='between' gap={16} fullWidth className='min-w-0': the title block, then icon buttons. min-w-0 lets a long title truncate instead of pushing out the close X.
  • Title block: VStack gap={4} className='min-w-0' › Heading as='h2' size='xl' weight='medium' truncate › summary HStack gap={4} align='center'.
  • Summary: Badge variant='dotted' type='secondary' size='medium', then Text size='xs' color='secondary' parts split by a · Text. Wrap every string in Text: HStack drops bare text.
  • Tabs follow DrawerHeader as their own strip: Tabs › TabsList, outside DrawerBody. The records tab shows its count as Badge type='secondary' color='slate' size='medium' className='ml-4'.
  • Render the active tab yourself (tab === 'overview' && …); there is no TabsContent here.

Overview tab

  • DrawerBody › VStack gap={12} className='py-16'.
  • Attributes go in one bordered card: grid grid-cols-2 gap-x-8 gap-y-16 rounded-8 border border-border-primary-light p-16, default (vertical) Attribute. A long list (IPs) spans both columns: className='col-span-2'.
  • Then one full-width Chart with the LineChart timeline, then cards two per row: grid grid-cols-2 gap-12. The grid row gives neighbours one height; Chart has no minimum of its own.

Records tab: list and detail

  • This tab replaces DrawerBody: <div className='flex min-h-0 flex-1 flex-col'>. Each pane brings its own ScrollArea, so the list and the detail scroll apart. Never nest the panes in DrawerBody or reach into its data-slots.
  • Filter bar across both panes: HStack gap={8} className='shrink-0 border-b border-border-primary-light px-16 py-8' › FilterInput in min-w-0 flex-1, then the sort Button variant='ghost' size='small'.
  • Panes: flex min-h-0 flex-1 › list w-320 shrink-0 border-r border-border-primary-light › detail min-w-0 flex-1.
  • List item: a button with value={id} and aria-pressed, w-full rounded-8 p-8 text-left; selected bg-states-primary-default-alt, else hover:bg-states-primary-hover. Inside, VStack gap={2}: time and ResponseCode (ml-auto), attack type Badges, HttpMethod + path, host.
  • Detail attributes: grid grid-cols-2 gap-x-8 gap-y-6, horizontal Attribute; a long value spans both columns.
  • Detail: sections, each a header row (HStack justify='between' className='px-24 py-8', Text size='md', optional "Actions" menu) and a body with px-24. Split sections with <div className='px-24 py-4'><Separator /></div>.
  • Nothing selected: centred Text size='sm' color='secondary' "Select a request to view details".

Does not exist: DrawerStatus, DrawerSubtitle, a split-pane or resizable-panel component, a size prop on Chart, BarList limit.

Examples

The list opens one shared drawer; switch to Requests for the split.

Click an attack: one shared, non-modal drawer opens. Its header carries the summary and the tabs; Overview scrolls in DrawerBody, Requests splits into a list and a detail that scroll on their own.

The header: title, summary line, copy link, tabs.

The header is two lines: a truncated Heading with the event name, then the summary — status Badge, then counts in secondary text split by middle dots. One icon button sits before the built-in close X. The tabs follow the header as their own strip, with a count Badge.

Overview: the attribute card, the timeline and chart cards.

Overview: the attributes sit in one bordered card, two columns, with the long list (IPs) across both. Then the full-width timeline, then chart cards two per row.

Requests: filter bar, list and detail.

Requests: a list and a detail side by side, each scrolling on its own, so this tab takes the place of DrawerBody instead of sitting in it. A filter bar spans both; each request is a card of time and response code, attack types, method and path, host.

States

StateShowExample component
Event loadingloading on each Attribute; LineChartEmpty with no text; BarListSkeleton, PieChartSkeleton. Card titles stayChart
No data for a cardChartEmpty inside the cardChart
Nothing selectedSecondary text centred in the detail paneText
A list failed to loadEmptyState in place of the list, with "Try again"EmptyState

Loading.

Still loading: attributes show their skeletons and every card keeps its title over a skeleton of its own shape. No Loader over the body.

What your app owns

You ownThe DS owns
Fetching the event, series, top N and recordsCard frame, chart drawing, tooltips
Tab state, the selected record, resetsTabs strip, scroll areas
List virtualisation and pagingItem styles via tokens
The link being copied, the toastTooltip, button states