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
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 fromonMasterCellClick,activeRowId, no footer. - Pass
width={1064}; putDrawerResizeHandlefirst and persistonResizeEnd. - 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-0lets 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› summaryHStack gap={4} align='center'. - Summary:
Badge variant='dotted' type='secondary' size='medium', thenText size='xs' color='secondary'parts split by a·Text. Wrap every string inText:HStackdrops bare text. - Tabs follow
DrawerHeaderas their own strip:Tabs›TabsList, outsideDrawerBody. The records tab shows its count asBadge type='secondary' color='slate' size='medium' className='ml-4'. - Render the active tab yourself (
tab === 'overview' && …); there is noTabsContenthere.
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
Chartwith theLineCharttimeline, then cards two per row:grid grid-cols-2 gap-12. The grid row gives neighbours one height;Charthas 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 ownScrollArea, so the list and the detail scroll apart. Never nest the panes inDrawerBodyor reach into itsdata-slots. - Filter bar across both panes:
HStack gap={8} className='shrink-0 border-b border-border-primary-light px-16 py-8'›FilterInputinmin-w-0 flex-1, then the sortButton variant='ghost' size='small'. - Panes:
flex min-h-0 flex-1› listw-320 shrink-0 border-r border-border-primary-light› detailmin-w-0 flex-1. - List item: a
buttonwithvalue={id}andaria-pressed,w-full rounded-8 p-8 text-left; selectedbg-states-primary-default-alt, elsehover:bg-states-primary-hover. Inside,VStack gap={2}: time andResponseCode(ml-auto), attack typeBadges,HttpMethod+ path, host. - Detail attributes:
grid grid-cols-2 gap-x-8 gap-y-6, horizontalAttribute; 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 withpx-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
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.