> 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.

# Complex drawer

**Components:** [`Drawer`](https://wallarm.github.io/design-system/components/drawer.md), [`DrawerContent`](https://wallarm.github.io/design-system/components/drawer.md), [`DrawerHeader`](https://wallarm.github.io/design-system/components/drawer.md), [`DrawerBody`](https://wallarm.github.io/design-system/components/drawer.md), [`DrawerResizeHandle`](https://wallarm.github.io/design-system/components/drawer.md), [`Heading`](https://wallarm.github.io/design-system/components/heading.md), [`Text`](https://wallarm.github.io/design-system/components/text.md), [`Badge`](https://wallarm.github.io/design-system/components/badge.md)


+60 more

[`Tabs`](https://wallarm.github.io/design-system/components/tabs.md), [`TabsList`](https://wallarm.github.io/design-system/components/tabs.md), [`TabsTrigger`](https://wallarm.github.io/design-system/components/tabs.md), [`Tooltip`](https://wallarm.github.io/design-system/components/tooltip.md), [`TooltipTrigger`](https://wallarm.github.io/design-system/components/tooltip.md), [`TooltipContent`](https://wallarm.github.io/design-system/components/tooltip.md), [`Button`](https://wallarm.github.io/design-system/components/button.md), [`Attribute`](https://wallarm.github.io/design-system/components/attribute.md), [`AttributeLabel`](https://wallarm.github.io/design-system/components/attribute.md), [`AttributeValue`](https://wallarm.github.io/design-system/components/attribute.md), [`FormatDateTime`](https://wallarm.github.io/design-system/components/format-date-time.md), [`Ip`](https://wallarm.github.io/design-system/components/ip.md), [`IpCountry`](https://wallarm.github.io/design-system/components/ip.md), [`IpAddress`](https://wallarm.github.io/design-system/components/ip.md), [`Chart`](https://wallarm.github.io/design-system/components/simple-charts.md), [`ChartHeader`](https://wallarm.github.io/design-system/components/simple-charts.md), [`ChartTitle`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChart`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartBody`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartGrid`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartXAxis`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartYAxis`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartLine`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartTooltip`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartEmpty`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarList`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListItem`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListBar`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListLabel`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListValue`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListPercent`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListSkeleton`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChart`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartDonut`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartCenter`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartCenterValue`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartCenterLabel`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartLegend`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartLegendItem`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartLegendValue`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartLegendPercent`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LegendDot`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartSkeleton`](https://wallarm.github.io/design-system/components/simple-charts.md), [`FilterInput`](https://wallarm.github.io/design-system/components/filter-input.md), [`ScrollArea`](https://wallarm.github.io/design-system/components/scroll-area.md), [`ScrollAreaViewport`](https://wallarm.github.io/design-system/components/scroll-area.md), [`ScrollAreaContent`](https://wallarm.github.io/design-system/components/scroll-area.md), [`ScrollAreaScrollbar`](https://wallarm.github.io/design-system/components/scroll-area.md), [`HttpMethod`](https://wallarm.github.io/design-system/components/http-method.md), [`ResponseCode`](https://wallarm.github.io/design-system/components/response-code.md), [`InlineCodeSnippet`](https://wallarm.github.io/design-system/components/code-snippet.md), [`CodeSnippetRoot`](https://wallarm.github.io/design-system/components/code-snippet.md), [`CodeSnippetContent`](https://wallarm.github.io/design-system/components/code-snippet.md), [`CodeSnippetLineNumbers`](https://wallarm.github.io/design-system/components/code-snippet.md), [`CodeSnippetCode`](https://wallarm.github.io/design-system/components/code-snippet.md), [`Separator`](https://wallarm.github.io/design-system/components/separator.md), [`DropdownMenu`](https://wallarm.github.io/design-system/components/dropdown-menu.md), [`Table`](https://wallarm.github.io/design-system/components/table.md), [`HStack`](https://wallarm.github.io/design-system/components/stack.md), [`VStack`](https://wallarm.github.io/design-system/components/stack.md)

A complex drawer is a wide [Detail drawer](https://wallarm.github.io/design-system/patterns/detail-drawer.md) 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

| Need                                              | Use                                                                                       | Not                                         |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------- |
| One configured entity (a provider, a rule)        | [Detail drawer](https://wallarm.github.io/design-system/patterns/detail-drawer.md), 640px | This pattern                                |
| One event with counts over time and many records  | This pattern, 1064px                                                                      | A new page, a `Dialog`                      |
| How the event ended                               | Status `Badge variant='dotted'` on the summary line                                       | A 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 link                              | Icon `Button` in a `Tooltip`, before the close X                                          | An "Actions" menu with one item             |
| Volume over time                                  | `LineChart` in a full-width `Chart`                                                       | A table of hours                            |
| Top N of something                                | `BarList` in a `Chart`                                                                    | A nested `Table`                            |
| Share by class (status codes)                     | `PieChart` donut in a `Chart`                                                             | `BarList`                                   |
| The event's own records (requests, hits)          | A tab with a list on the left and the selected record on the right                        | A `Table` under the charts, a nested drawer |

## Rules

This page is about layout. Values inside it (dates, IPs, codes, badges) follow [Entity table](https://wallarm.github.io/design-system/patterns/entity-table.md) and [Detail drawer](https://wallarm.github.io/design-system/patterns/detail-drawer.md).

**Drawer**

- Everything in [Detail drawer](https://wallarm.github.io/design-system/patterns/detail-drawer.md) 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-slot`s.
- 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 `Badge`s, `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.

```tsx
import { type MouseEvent, useState } from 'react';
import { Attribute, AttributeLabel, AttributeValue } from '@wallarm-org/design-system/Attribute';
import { Badge } from '@wallarm-org/design-system/Badge';
import { Button } from '@wallarm-org/design-system/Button';
import { CodeSnippetCode, CodeSnippetContent, CodeSnippetLineNumbers, CodeSnippetRoot, InlineCodeSnippet } from '@wallarm-org/design-system/CodeSnippet';
import { Drawer, DrawerBody, DrawerContent, DrawerHeader, DrawerResizeHandle } from '@wallarm-org/design-system/Drawer';
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemText, DropdownMenuSeparator, DropdownMenuTrigger } from '@wallarm-org/design-system/DropdownMenu';
import { FilterInput } from '@wallarm-org/design-system/FilterInput';
import { FormatDateTime } from '@wallarm-org/design-system/FormatDateTime';
import { Heading } from '@wallarm-org/design-system/Heading';
import { HttpMethod } from '@wallarm-org/design-system/HttpMethod';
import { ArrowDown, Link } from '@wallarm-org/design-system/icons';
import { Ip, IpAddress, IpCountry } from '@wallarm-org/design-system/Ip';
import { Page, PageContent, PageHeader, PageHeaderGroup, PageTitle } from '@wallarm-org/design-system/Page';
import { ResponseCode } from '@wallarm-org/design-system/ResponseCode';
import { ScrollArea, ScrollAreaContent, ScrollAreaScrollbar, ScrollAreaViewport } from '@wallarm-org/design-system/ScrollArea';
import { Separator } from '@wallarm-org/design-system/Separator';
import { BarList, BarListBar, BarListItem, BarListLabel, BarListPercent, BarListValue, Chart, ChartHeader, ChartTitle, LineChart, LineChartBody, LineChartGrid, LineChartLine, LineChartTooltip, LineChartXAxis, LineChartYAxis, useChartTimeFormatters } from '@wallarm-org/design-system/SimpleCharts';
import { HStack, VStack } from '@wallarm-org/design-system/Stack';
import { type TableColumnDef, Table } from '@wallarm-org/design-system/Table';
import { Tabs, TabsList, TabsTrigger } from '@wallarm-org/design-system/Tabs';
import { Text } from '@wallarm-org/design-system/Text';
import { Tooltip, TooltipContent, TooltipTrigger } from '@wallarm-org/design-system/Tooltip';

export const Default = () => {
  const [selectedId, setSelectedId] = useState<string | null>(null);
  const [open, setOpen] = useState(false);
  const [tab, setTab] = useState('overview');
  const [requestId, setRequestId] = useState<string | null>(null);
  const { formatHour, formatHourWithTimezone } = useChartTimeFormatters();

  const attack = ATTACKS.find(item => item.id === selectedId) ?? null;
  const request = attack?.requests.find(item => item.id === requestId) ?? null;

  const columns: TableColumnDef<Attack>[] = [
    { accessorKey: 'name', header: 'Attack', size: 520 },
    { accessorKey: 'type', header: 'Type', size: 160 },
    { accessorKey: 'status', header: 'Status', size: 140 },
    { accessorKey: 'total', header: 'Requests', size: 120 },
  ];

  const handleMasterCellClick = (id: string) => {
    setSelectedId(id);
    setTab('overview');
    setRequestId(null);
    setOpen(true);
  };
  const handleCopyLink = () => onCopyLink(attack);
  const handleSelectRequest = (event: MouseEvent<HTMLButtonElement>) =>
    setRequestId(event.currentTarget.value);

  return (
    <Page name='events-attacks' fullSize fixedHeight data-testid='attacks-page'>
      <PageHeader>
        <PageHeaderGroup>
          <PageTitle>Attacks</PageTitle>
        </PageHeaderGroup>
      </PageHeader>

      <PageContent>
        <Table
          aria-label='Attacks'
          data={ATTACKS}
          columns={columns}
          getRowId={getAttackId}
          activeRowId={open ? selectedId : null}
          onMasterCellClick={handleMasterCellClick}
          data-testid='attacks-table'
        />
      </PageContent>

      <Drawer
        open={open}
        onOpenChange={setOpen}
        modal={false}
        overlay={false}
        closeOnOutsideClick={false}
        width={1064}
        data-testid='attack-drawer'
      >
        <DrawerContent>
          <DrawerResizeHandle onResizeEnd={onSaveDrawerWidth} />
          <DrawerHeader>
            <HStack align='start' justify='between' gap={16} fullWidth className='min-w-0'>
              <VStack gap={4} className='min-w-0'>
                <Heading as='h2' size='xl' weight='medium' truncate>
                  {attack?.name}
                </Heading>
                <HStack gap={4} align='center'>
                  <Badge
                    variant='dotted'
                    type='secondary'
                    size='medium'
                    color={attack?.status === 'Blocked' ? 'red' : 'amber'}
                  >
                    {attack?.status}
                  </Badge>
                  <Text size='xs' color='secondary'>
                    ·
                  </Text>
                  <Text size='xs' color='secondary'>
                    {attack?.blocked}/{attack?.total} blocked
                  </Text>
                  <Text size='xs' color='secondary'>
                    ·
                  </Text>
                  <Text size='xs' color='secondary'>
                    {attack?.ips.length} IPs across 1 country
                  </Text>
                </HStack>
              </VStack>
              <Tooltip>
                <TooltipTrigger asChild>
                  <Button
                    variant='ghost'
                    color='neutral'
                    size='small'
                    aria-label='Copy link'
                    onClick={handleCopyLink}
                  >
                    <Link />
                  </Button>
                </TooltipTrigger>
                <TooltipContent>Copy link</TooltipContent>
              </Tooltip>
            </HStack>
          </DrawerHeader>
          <Tabs value={tab} onChange={setTab} data-testid='attack-tabs'>
            <TabsList>
              <TabsTrigger value='overview'>Overview</TabsTrigger>
              <TabsTrigger value='requests'>
                Requests
                <Badge type='secondary' color='slate' size='medium' className='ml-4'>
                  {attack?.total}
                </Badge>
              </TabsTrigger>
            </TabsList>
          </Tabs>

          {tab === 'overview' && (
            <DrawerBody>
              <VStack gap={12} className='py-16'>
                <div
                  className='grid grid-cols-2 gap-x-8 gap-y-16 rounded-8 border border-border-primary-light p-16'
                  data-testid='attack-info-card'
                >
                  <Attribute>
                    <AttributeLabel>Status</AttributeLabel>
                    <AttributeValue>
                      <Badge variant='dotted' type='secondary' size='medium' color='amber'>
                        {attack?.status}
                      </Badge>
                    </AttributeValue>
                  </Attribute>
                  <Attribute>
                    <AttributeLabel>First seen</AttributeLabel>
                    <AttributeValue>
                      <FormatDateTime
                        value={attack?.firstSeen ?? ''}
                        format='datetime'
                        layout='inline'
                      />
                    </AttributeValue>
                  </Attribute>
                  <Attribute>
                    <AttributeLabel>Attack type</AttributeLabel>
                    <AttributeValue>
                      <Badge type='secondary' color='slate' size='medium'>
                        {attack?.type}
                      </Badge>
                    </AttributeValue>
                  </Attribute>
                  <Attribute>
                    <AttributeLabel>Last seen</AttributeLabel>
                    <AttributeValue>
                      <FormatDateTime
                        value={attack?.lastSeen ?? ''}
                        format='datetime'
                        layout='inline'
                      />
                    </AttributeValue>
                  </Attribute>
                  <Attribute>
                    <AttributeLabel>Sessions</AttributeLabel>
                    <AttributeValue>{formatCount(attack?.sessions ?? 0)} sessions</AttributeValue>
                  </Attribute>
                  <Attribute>
                    <AttributeLabel>Users</AttributeLabel>
                    <AttributeValue>{attack?.users[0]?.name}</AttributeValue>
                  </Attribute>
                  <Attribute className='col-span-2'>
                    <AttributeLabel>IPs</AttributeLabel>
                    <AttributeValue>
                      <HStack gap={8}>
                        {attack?.ips.map(ip => (
                          <Ip key={ip.name}>
                            <IpCountry code={attack.country} />
                            <IpAddress>{ip.name}</IpAddress>
                          </Ip>
                        ))}
                      </HStack>
                    </AttributeValue>
                  </Attribute>
                </div>
                <Chart>
                  <ChartHeader>
                    <ChartTitle>Timeline</ChartTitle>
                  </ChartHeader>
                  <LineChart data={TIMELINE} series={TIMELINE_SERIES} xKey='timestamp'>
                    <LineChartBody>
                      <LineChartGrid />
                      <LineChartXAxis tickFormatter={formatHour} minTickGap={48} />
                      <LineChartYAxis />
                      <LineChartLine seriesKey='requests' curve='linear' />
                      <LineChartTooltip xTickFormatter={formatHourWithTimezone} />
                    </LineChartBody>
                  </LineChart>
                </Chart>
                <div className='grid grid-cols-2 gap-12'>
                  <Chart>
                    <ChartHeader>
                      <ChartTitle>Top 5 hosts</ChartTitle>
                    </ChartHeader>
                    <BarList max={sumValues(attack?.hosts ?? [])}>
                      {attack?.hosts.map(row => (
                        <BarListItem key={row.name} value={row.value}>
                          <BarListBar />
                          <BarListLabel>{row.name}</BarListLabel>
                          <BarListValue>
                            <BarListPercent />
                          </BarListValue>
                        </BarListItem>
                      ))}
                    </BarList>
                  </Chart>
                  <Chart>
                    <ChartHeader>
                      <ChartTitle>Top 5 IPs</ChartTitle>
                    </ChartHeader>
                    <BarList max={sumValues(attack?.ips ?? [])}>
                      {attack?.ips.map(row => (
                        <BarListItem key={row.name} value={row.value}>
                          <BarListBar />
                          <BarListLabel>{row.name}</BarListLabel>
                          <BarListValue>
                            <BarListPercent />
                          </BarListValue>
                        </BarListItem>
                      ))}
                    </BarList>
                  </Chart>
                </div>
              </VStack>
            </DrawerBody>
          )}

          {tab === 'requests' && (
            <div className='flex min-h-0 flex-1 flex-col' data-testid='attack-requests'>
              <HStack gap={8} className='shrink-0 border-b border-border-primary-light px-16 py-8'>
                <div className='min-w-0 flex-1'>
                  <FilterInput placeholder='Filter requests...' />
                </div>
                <Button variant='ghost' color='neutral' size='small'>
                  <ArrowDown /> Date
                </Button>
              </HStack>
              <div className='flex min-h-0 flex-1'>
                <div className='w-320 shrink-0 border-r border-border-primary-light'>
                  <ScrollArea>
                    <ScrollAreaViewport>
                      <ScrollAreaContent>
                        <VStack gap={2} className='p-8' data-testid='attack-request-list'>
                          {attack?.requests.map(item => (
                            <button
                              key={item.id}
                              type='button'
                              value={item.id}
                              aria-pressed={item.id === requestId}
                              onClick={handleSelectRequest}
                              className={
                                item.id === requestId
                                  ? 'w-full rounded-8 bg-states-primary-default-alt p-8 text-left'
                                  : 'w-full rounded-8 p-8 text-left hover:bg-states-primary-hover'
                              }
                            >
                              <VStack gap={2}>
                                <HStack gap={4}>
                                  <FormatDateTime
                                    value={item.time}
                                    format='datetime'
                                    layout='inline'
                                  />
                                  <div className='ml-auto'>
                                    <ResponseCode code={item.status} />
                                  </div>
                                </HStack>
                                <HStack gap={4}>
                                  {item.attackTypes.map(type => (
                                    <Badge key={type} type='secondary' color='slate' size='medium'>
                                      {type}
                                    </Badge>
                                  ))}
                                </HStack>
                                <HStack gap={4}>
                                  <HttpMethod method={item.method} />
                                  <Text size='xs' truncate>
                                    {item.path}
                                  </Text>
                                </HStack>
                                <Text size='xs' color='secondary' truncate>
                                  {item.host}
                                </Text>
                              </VStack>
                            </button>
                          ))}
                        </VStack>
                      </ScrollAreaContent>
                    </ScrollAreaViewport>
                    <ScrollAreaScrollbar />
                  </ScrollArea>
                </div>
                <div className='min-w-0 flex-1' data-testid='attack-request'>
                  {request ? (
                    <ScrollArea>
                      <ScrollAreaViewport>
                        <ScrollAreaContent>
                          <HStack justify='between' className='px-24 py-8'>
                            <Text size='md'>Request details</Text>
                            <DropdownMenu>
                              <DropdownMenuTrigger asChild>
                                <Button variant='outline' color='neutral' size='small'>
                                  Actions
                                </Button>
                              </DropdownMenuTrigger>
                              <DropdownMenuContent>
                                <DropdownMenuItem onSelect={onMarkFalsePositive}>
                                  <DropdownMenuItemText>
                                    Mark as false positive
                                  </DropdownMenuItemText>
                                </DropdownMenuItem>
                                <DropdownMenuSeparator />
                                <DropdownMenuItem
                                  variant='destructive'
                                  onSelect={onAddIpToDenylist}
                                >
                                  <DropdownMenuItemText>Add IP to denylist</DropdownMenuItemText>
                                </DropdownMenuItem>
                              </DropdownMenuContent>
                            </DropdownMenu>
                          </HStack>
                          <div className='grid grid-cols-2 gap-x-8 gap-y-6 px-24 pb-8'>
                            <Attribute orientation='horizontal'>
                              <AttributeLabel>Source IP</AttributeLabel>
                              <AttributeValue>
                                <Ip>
                                  <IpCountry code={attack?.country ?? 'US'} />
                                  <IpAddress>{request.ip}</IpAddress>
                                </Ip>
                              </AttributeValue>
                            </Attribute>
                            <Attribute orientation='horizontal'>
                              <AttributeLabel>Request ID</AttributeLabel>
                              <AttributeValue>
                                <InlineCodeSnippet code={request.id} size='sm' />
                              </AttributeValue>
                            </Attribute>
                            <Attribute orientation='horizontal'>
                              <AttributeLabel>User</AttributeLabel>
                              <AttributeValue>{request.user}</AttributeValue>
                            </Attribute>
                            <Attribute orientation='horizontal'>
                              <AttributeLabel>Session ID</AttributeLabel>
                              <AttributeValue>
                                <InlineCodeSnippet code={request.sessionId} size='sm' />
                              </AttributeValue>
                            </Attribute>
                            <Attribute orientation='horizontal' className='col-span-2'>
                              <AttributeLabel>URI</AttributeLabel>
                              <AttributeValue>
                                <HStack gap={6}>
                                  <HttpMethod method={request.method} />
                                  <Text size='sm' truncate>
                                    {request.path}
                                  </Text>
                                </HStack>
                              </AttributeValue>
                            </Attribute>
                          </div>
                          <div className='px-24 py-4'>
                            <Separator />
                          </div>
                          <div className='px-24 py-8'>
                            <Text size='md'>Full request</Text>
                          </div>
                          <div className='px-24 pb-16'>
                            <CodeSnippetRoot
                              code={request.raw}
                              language='text'
                              maxLines={15}
                              wrapLines
                            >
                              <CodeSnippetContent>
                                <CodeSnippetLineNumbers />
                                <CodeSnippetCode />
                              </CodeSnippetContent>
                            </CodeSnippetRoot>
                          </div>
                        </ScrollAreaContent>
                      </ScrollAreaViewport>
                      <ScrollAreaScrollbar />
                    </ScrollArea>
                  ) : (
                    <div className='flex h-full items-center justify-center'>
                      <Text size='sm' color='secondary'>
                        Select a request to view details
                      </Text>
                    </div>
                  )}
                </div>
              </div>
            </div>
          )}
        </DrawerContent>
      </Drawer>
    </Page>
  );
};
```

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`.

```tsx
import { useState } from 'react';
import { Badge } from '@wallarm-org/design-system/Badge';
import { Button } from '@wallarm-org/design-system/Button';
import { Drawer, DrawerContent, DrawerHeader, DrawerTrigger } from '@wallarm-org/design-system/Drawer';
import { Heading } from '@wallarm-org/design-system/Heading';
import { Link } from '@wallarm-org/design-system/icons';
import { HStack, VStack } from '@wallarm-org/design-system/Stack';
import { Tabs, TabsList, TabsTrigger } from '@wallarm-org/design-system/Tabs';
import { Text } from '@wallarm-org/design-system/Text';
import { Tooltip, TooltipContent, TooltipTrigger } from '@wallarm-org/design-system/Tooltip';

export const Header = () => {
  const [tab, setTab] = useState('overview');

  const handleCopyLink = () => onCopyLink(RCE);

  return (
    <Drawer width={1064} data-testid='attack-drawer'>
      <DrawerTrigger asChild>
        <Button variant='outline' color='neutral'>
          View attack
        </Button>
      </DrawerTrigger>
      <DrawerContent>
        <DrawerHeader>
          <HStack align='start' justify='between' gap={16} fullWidth className='min-w-0'>
            <VStack gap={4} className='min-w-0' data-testid='attack-summary'>
              <Heading as='h2' size='xl' weight='medium' truncate>
                {RCE.name}
              </Heading>
              <HStack gap={4} align='center'>
                <Badge variant='dotted' type='secondary' size='medium' color='amber'>
                  {RCE.status}
                </Badge>
                <Text size='xs' color='secondary'>
                  ·
                </Text>
                <Text size='xs' color='secondary'>
                  {RCE.blocked}/{RCE.total} blocked
                </Text>
                <Text size='xs' color='secondary'>
                  ·
                </Text>
                <Text size='xs' color='secondary'>
                  {RCE.ips.length} IPs across 1 country
                </Text>
              </HStack>
            </VStack>
            <Tooltip>
              <TooltipTrigger asChild>
                <Button
                  variant='ghost'
                  color='neutral'
                  size='small'
                  aria-label='Copy link'
                  onClick={handleCopyLink}
                >
                  <Link />
                </Button>
              </TooltipTrigger>
              <TooltipContent>Copy link</TooltipContent>
            </Tooltip>
          </HStack>
        </DrawerHeader>
        <Tabs value={tab} onChange={setTab}>
          <TabsList>
            <TabsTrigger value='overview'>Overview</TabsTrigger>
            <TabsTrigger value='requests'>
              Requests
              <Badge type='secondary' color='slate' size='medium' className='ml-4'>
                {RCE.total}
              </Badge>
            </TabsTrigger>
          </TabsList>
        </Tabs>
      </DrawerContent>
    </Drawer>
  );
};
```

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.

```tsx
import { Attribute, AttributeLabel, AttributeValue } from '@wallarm-org/design-system/Attribute';
import { Badge } from '@wallarm-org/design-system/Badge';
import { Button } from '@wallarm-org/design-system/Button';
import { Drawer, DrawerBody, DrawerContent, DrawerHeader, DrawerTrigger } from '@wallarm-org/design-system/Drawer';
import { FormatDateTime } from '@wallarm-org/design-system/FormatDateTime';
import { Heading } from '@wallarm-org/design-system/Heading';
import { Ip, IpAddress, IpCountry } from '@wallarm-org/design-system/Ip';
import { BarList, BarListBar, BarListItem, BarListLabel, BarListPercent, BarListValue, Chart, ChartHeader, ChartTitle, LegendDot, LineChart, LineChartBody, LineChartGrid, LineChartLine, LineChartTooltip, LineChartXAxis, LineChartYAxis, PieChart, PieChartCenter, PieChartCenterLabel, PieChartCenterValue, PieChartDonut, PieChartLegend, PieChartLegendItem, PieChartLegendPercent, PieChartLegendValue, useChartTimeFormatters } from '@wallarm-org/design-system/SimpleCharts';
import { HStack, VStack } from '@wallarm-org/design-system/Stack';

export const OverviewTab = () => {
  const { formatHour, formatHourWithTimezone } = useChartTimeFormatters();

  return (
    <Drawer width={1064} data-testid='attack-drawer'>
      <DrawerTrigger asChild>
        <Button variant='outline' color='neutral'>
          View attack
        </Button>
      </DrawerTrigger>
      <DrawerContent>
        <DrawerHeader>
          <Heading as='h2' size='xl' weight='medium' truncate>
            {RCE.name}
          </Heading>
        </DrawerHeader>
        <DrawerBody>
          <VStack gap={12} className='py-16' data-testid='attack-overview'>
            <div className='grid grid-cols-2 gap-x-8 gap-y-16 rounded-8 border border-border-primary-light p-16'>
              <Attribute>
                <AttributeLabel>Status</AttributeLabel>
                <AttributeValue>
                  <Badge variant='dotted' type='secondary' size='medium' color='amber'>
                    {RCE.status}
                  </Badge>
                </AttributeValue>
              </Attribute>
              <Attribute>
                <AttributeLabel>First seen</AttributeLabel>
                <AttributeValue>
                  <FormatDateTime value={RCE.firstSeen} format='datetime' layout='inline' />
                </AttributeValue>
              </Attribute>
              <Attribute>
                <AttributeLabel>Attack type</AttributeLabel>
                <AttributeValue>
                  <Badge type='secondary' color='slate' size='medium'>
                    {RCE.type}
                  </Badge>
                </AttributeValue>
              </Attribute>
              <Attribute>
                <AttributeLabel>Last seen</AttributeLabel>
                <AttributeValue>
                  <FormatDateTime value={RCE.lastSeen} format='datetime' layout='inline' />
                </AttributeValue>
              </Attribute>
              <Attribute>
                <AttributeLabel>Sessions</AttributeLabel>
                <AttributeValue>{formatCount(RCE.sessions)} sessions</AttributeValue>
              </Attribute>
              <Attribute>
                <AttributeLabel>Users</AttributeLabel>
                <AttributeValue>{RCE.users[0]?.name}</AttributeValue>
              </Attribute>
              <Attribute className='col-span-2'>
                <AttributeLabel>IPs</AttributeLabel>
                <AttributeValue>
                  <HStack gap={8}>
                    {RCE.ips.map(ip => (
                      <Ip key={ip.name}>
                        <IpCountry code={RCE.country} />
                        <IpAddress>{ip.name}</IpAddress>
                      </Ip>
                    ))}
                  </HStack>
                </AttributeValue>
              </Attribute>
            </div>
            <Chart>
              <ChartHeader>
                <ChartTitle>Timeline</ChartTitle>
              </ChartHeader>
              <LineChart data={TIMELINE} series={TIMELINE_SERIES} xKey='timestamp'>
                <LineChartBody>
                  <LineChartGrid />
                  <LineChartXAxis tickFormatter={formatHour} minTickGap={48} />
                  <LineChartYAxis />
                  <LineChartLine seriesKey='requests' curve='linear' />
                  <LineChartTooltip xTickFormatter={formatHourWithTimezone} />
                </LineChartBody>
              </LineChart>
            </Chart>
            <div className='grid grid-cols-2 gap-12'>
              <Chart>
                <ChartHeader>
                  <ChartTitle>Top 5 hosts</ChartTitle>
                </ChartHeader>
                <BarList max={sumValues(RCE.hosts)}>
                  {RCE.hosts.map(row => (
                    <BarListItem key={row.name} value={row.value}>
                      <BarListBar />
                      <BarListLabel>{row.name}</BarListLabel>
                      <BarListValue>
                        <BarListPercent />
                      </BarListValue>
                    </BarListItem>
                  ))}
                </BarList>
              </Chart>
              <Chart>
                <ChartHeader>
                  <ChartTitle>Status codes</ChartTitle>
                </ChartHeader>
                <PieChart data={RCE_STATUS_CODES} total={sumValues(RCE_STATUS_CODES)}>
                  <PieChartDonut>
                    <PieChartCenter>
                      <PieChartCenterValue>{formatCount(RCE.total)}</PieChartCenterValue>
                      <PieChartCenterLabel pluralize={{ one: 'request', other: 'requests' }} />
                    </PieChartCenter>
                  </PieChartDonut>
                  <PieChartLegend>
                    {RCE_STATUS_CODES.map(row => (
                      <PieChartLegendItem key={row.name} name={row.name}>
                        <Badge color={row.color} type='secondary' textVariant='code'>
                          {row.name}
                        </Badge>
                        <PieChartLegendValue>
                          {formatCount(row.value)}
                          <LegendDot />
                          <PieChartLegendPercent />
                        </PieChartLegendValue>
                      </PieChartLegendItem>
                    ))}
                  </PieChartLegend>
                </PieChart>
              </Chart>
              <Chart>
                <ChartHeader>
                  <ChartTitle>Top 5 IPs</ChartTitle>
                </ChartHeader>
                <BarList max={sumValues(RCE.ips)}>
                  {RCE.ips.map(row => (
                    <BarListItem key={row.name} value={row.value}>
                      <BarListBar />
                      <BarListLabel>{row.name}</BarListLabel>
                      <BarListValue>
                        <BarListPercent />
                      </BarListValue>
                    </BarListItem>
                  ))}
                </BarList>
              </Chart>
              <Chart>
                <ChartHeader>
                  <ChartTitle>Top 5 users</ChartTitle>
                </ChartHeader>
                <BarList max={sumValues(RCE.users)}>
                  {RCE.users.map(row => (
                    <BarListItem key={row.name} value={row.value}>
                      <BarListBar />
                      <BarListLabel>{row.name}</BarListLabel>
                      <BarListValue>
                        <BarListPercent />
                      </BarListValue>
                    </BarListItem>
                  ))}
                </BarList>
              </Chart>
            </div>
          </VStack>
        </DrawerBody>
      </DrawerContent>
    </Drawer>
  );
};
```

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.

```tsx
import { type MouseEvent, useState } from 'react';
import { Attribute, AttributeLabel, AttributeValue } from '@wallarm-org/design-system/Attribute';
import { Badge } from '@wallarm-org/design-system/Badge';
import { Button } from '@wallarm-org/design-system/Button';
import { CodeSnippetCode, CodeSnippetContent, CodeSnippetLineNumbers, CodeSnippetRoot, InlineCodeSnippet } from '@wallarm-org/design-system/CodeSnippet';
import { Drawer, DrawerContent, DrawerHeader, DrawerTrigger } from '@wallarm-org/design-system/Drawer';
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemText, DropdownMenuSeparator, DropdownMenuTrigger } from '@wallarm-org/design-system/DropdownMenu';
import { FilterInput } from '@wallarm-org/design-system/FilterInput';
import { FormatDateTime } from '@wallarm-org/design-system/FormatDateTime';
import { Heading } from '@wallarm-org/design-system/Heading';
import { HttpMethod } from '@wallarm-org/design-system/HttpMethod';
import { ArrowDown } from '@wallarm-org/design-system/icons';
import { Ip, IpAddress, IpCountry } from '@wallarm-org/design-system/Ip';
import { ResponseCode } from '@wallarm-org/design-system/ResponseCode';
import { ScrollArea, ScrollAreaContent, ScrollAreaScrollbar, ScrollAreaViewport } from '@wallarm-org/design-system/ScrollArea';
import { Separator } from '@wallarm-org/design-system/Separator';
import { HStack, VStack } from '@wallarm-org/design-system/Stack';
import { Text } from '@wallarm-org/design-system/Text';

export const RequestsTab = () => {
  const [requestId, setRequestId] = useState<string | null>('req-1');

  const request = REQUESTS.find(item => item.id === requestId) ?? null;

  const handleSelectRequest = (event: MouseEvent<HTMLButtonElement>) =>
    setRequestId(event.currentTarget.value);

  return (
    <Drawer width={1064} data-testid='attack-drawer'>
      <DrawerTrigger asChild>
        <Button variant='outline' color='neutral'>
          View requests
        </Button>
      </DrawerTrigger>
      <DrawerContent>
        <DrawerHeader>
          <Heading as='h2' size='xl' weight='medium' truncate>
            {RCE.name}
          </Heading>
        </DrawerHeader>
        <div className='flex min-h-0 flex-1 flex-col' data-testid='attack-requests'>
          <HStack gap={8} className='shrink-0 border-b border-border-primary-light px-16 py-8'>
            <div className='min-w-0 flex-1'>
              <FilterInput placeholder='Filter requests...' />
            </div>
            <Button variant='ghost' color='neutral' size='small'>
              <ArrowDown /> Date
            </Button>
          </HStack>
          <div className='flex min-h-0 flex-1'>
            <div className='w-320 shrink-0 border-r border-border-primary-light'>
              <ScrollArea>
                <ScrollAreaViewport>
                  <ScrollAreaContent>
                    <VStack gap={2} className='p-8' data-testid='attack-request-list'>
                      {REQUESTS.map(item => (
                        <button
                          key={item.id}
                          type='button'
                          value={item.id}
                          aria-pressed={item.id === requestId}
                          onClick={handleSelectRequest}
                          className={
                            item.id === requestId
                              ? 'w-full rounded-8 bg-states-primary-default-alt p-8 text-left'
                              : 'w-full rounded-8 p-8 text-left hover:bg-states-primary-hover'
                          }
                        >
                          <VStack gap={2}>
                            <HStack gap={4}>
                              <FormatDateTime value={item.time} format='datetime' layout='inline' />
                              <div className='ml-auto'>
                                <ResponseCode code={item.status} />
                              </div>
                            </HStack>
                            <HStack gap={4}>
                              {item.attackTypes.map(type => (
                                <Badge key={type} type='secondary' color='slate' size='medium'>
                                  {type}
                                </Badge>
                              ))}
                            </HStack>
                            <HStack gap={4}>
                              <HttpMethod method={item.method} />
                              <Text size='xs' truncate>
                                {item.path}
                              </Text>
                            </HStack>
                            <Text size='xs' color='secondary' truncate>
                              {item.host}
                            </Text>
                          </VStack>
                        </button>
                      ))}
                    </VStack>
                  </ScrollAreaContent>
                </ScrollAreaViewport>
                <ScrollAreaScrollbar />
              </ScrollArea>
            </div>
            <div className='min-w-0 flex-1' data-testid='attack-request'>
              {request && (
                <ScrollArea>
                  <ScrollAreaViewport>
                    <ScrollAreaContent>
                      <HStack justify='between' className='px-24 py-8'>
                        <Text size='md'>Request details</Text>
                        <DropdownMenu>
                          <DropdownMenuTrigger asChild>
                            <Button variant='outline' color='neutral' size='small'>
                              Actions
                            </Button>
                          </DropdownMenuTrigger>
                          <DropdownMenuContent>
                            <DropdownMenuItem onSelect={onMarkFalsePositive}>
                              <DropdownMenuItemText>Mark as false positive</DropdownMenuItemText>
                            </DropdownMenuItem>
                            <DropdownMenuSeparator />
                            <DropdownMenuItem variant='destructive' onSelect={onAddIpToDenylist}>
                              <DropdownMenuItemText>Add IP to denylist</DropdownMenuItemText>
                            </DropdownMenuItem>
                          </DropdownMenuContent>
                        </DropdownMenu>
                      </HStack>
                      <div className='grid grid-cols-2 gap-x-8 gap-y-6 px-24 pb-8'>
                        <Attribute orientation='horizontal'>
                          <AttributeLabel>Source IP</AttributeLabel>
                          <AttributeValue>
                            <Ip>
                              <IpCountry code={RCE.country} />
                              <IpAddress>{request.ip}</IpAddress>
                            </Ip>
                          </AttributeValue>
                        </Attribute>
                        <Attribute orientation='horizontal'>
                          <AttributeLabel>Request ID</AttributeLabel>
                          <AttributeValue>
                            <InlineCodeSnippet code={request.id} size='sm' />
                          </AttributeValue>
                        </Attribute>
                        <Attribute orientation='horizontal'>
                          <AttributeLabel>User</AttributeLabel>
                          <AttributeValue>{request.user}</AttributeValue>
                        </Attribute>
                        <Attribute orientation='horizontal'>
                          <AttributeLabel>Session ID</AttributeLabel>
                          <AttributeValue>
                            <InlineCodeSnippet code={request.sessionId} size='sm' />
                          </AttributeValue>
                        </Attribute>
                        <Attribute orientation='horizontal' className='col-span-2'>
                          <AttributeLabel>URI</AttributeLabel>
                          <AttributeValue>
                            <HStack gap={6}>
                              <HttpMethod method={request.method} />
                              <Text size='sm' truncate>
                                {request.path}
                              </Text>
                            </HStack>
                          </AttributeValue>
                        </Attribute>
                      </div>
                      <div className='px-24 py-4'>
                        <Separator />
                      </div>
                      <div className='px-24 py-8'>
                        <Text size='md'>Attack</Text>
                      </div>
                      <div className='grid grid-cols-1 gap-y-6 px-24 pb-8'>
                        <Attribute orientation='horizontal'>
                          <AttributeLabel>Parameter</AttributeLabel>
                          <AttributeValue>
                            <InlineCodeSnippet code={request.parameter} size='sm' />
                          </AttributeValue>
                        </Attribute>
                        <Attribute orientation='horizontal'>
                          <AttributeLabel>Payload</AttributeLabel>
                          <AttributeValue>
                            <InlineCodeSnippet code={request.payload} size='sm' />
                          </AttributeValue>
                        </Attribute>
                      </div>
                      <div className='px-24 py-4'>
                        <Separator />
                      </div>
                      <div className='px-24 py-8'>
                        <Text size='md'>Full request</Text>
                      </div>
                      <div className='px-24 pb-16'>
                        <CodeSnippetRoot code={request.raw} language='text' maxLines={15} wrapLines>
                          <CodeSnippetContent>
                            <CodeSnippetLineNumbers />
                            <CodeSnippetCode />
                          </CodeSnippetContent>
                        </CodeSnippetRoot>
                      </div>
                    </ScrollAreaContent>
                  </ScrollAreaViewport>
                  <ScrollAreaScrollbar />
                </ScrollArea>
              )}
            </div>
          </div>
        </div>
      </DrawerContent>
    </Drawer>
  );
};
```

## States

| State                 | Show                                                                                                                  | Example component |
| --------------------- | --------------------------------------------------------------------------------------------------------------------- | ----------------- |
| Event loading         | `loading` on each `Attribute`; `LineChartEmpty` with no text; `BarListSkeleton`, `PieChartSkeleton`. Card titles stay | `Chart`           |
| No data for a card    | `ChartEmpty` inside the card                                                                                          | `Chart`           |
| Nothing selected      | Secondary text centred in the detail pane                                                                             | `Text`            |
| A list failed to load | `EmptyState` 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.

```tsx
import { Attribute, AttributeLabel, AttributeValue } from '@wallarm-org/design-system/Attribute';
import { Button } from '@wallarm-org/design-system/Button';
import { Drawer, DrawerBody, DrawerContent, DrawerHeader, DrawerTrigger } from '@wallarm-org/design-system/Drawer';
import { Heading } from '@wallarm-org/design-system/Heading';
import { BarListSkeleton, Chart, ChartHeader, ChartTitle, LineChartEmpty, PieChartSkeleton } from '@wallarm-org/design-system/SimpleCharts';
import { VStack } from '@wallarm-org/design-system/Stack';

export const Loading = () => (
  <Drawer width={1064} data-testid='attack-drawer'>
    <DrawerTrigger asChild>
      <Button variant='outline' color='neutral'>
        View attack
      </Button>
    </DrawerTrigger>
    <DrawerContent>
      <DrawerHeader>
        <Heading as='h2' size='xl' weight='medium' truncate>
          {RCE.name}
        </Heading>
      </DrawerHeader>
      <DrawerBody>
        <VStack gap={12} className='py-16' data-testid='attack-loading'>
          <div className='grid grid-cols-2 gap-x-8 gap-y-16 rounded-8 border border-border-primary-light p-16'>
            <Attribute loading>
              <AttributeLabel>Status</AttributeLabel>
              <AttributeValue />
            </Attribute>
            <Attribute loading>
              <AttributeLabel>First seen</AttributeLabel>
              <AttributeValue />
            </Attribute>
            <Attribute loading>
              <AttributeLabel>Attack type</AttributeLabel>
              <AttributeValue />
            </Attribute>
            <Attribute loading>
              <AttributeLabel>Last seen</AttributeLabel>
              <AttributeValue />
            </Attribute>
          </div>
          <Chart>
            <ChartHeader>
              <ChartTitle>Timeline</ChartTitle>
            </ChartHeader>
            <LineChartEmpty />
          </Chart>
          <div className='grid grid-cols-2 gap-12'>
            <Chart>
              <ChartHeader>
                <ChartTitle>Top 5 hosts</ChartTitle>
              </ChartHeader>
              <BarListSkeleton rows={3} />
            </Chart>
            <Chart>
              <ChartHeader>
                <ChartTitle>Status codes</ChartTitle>
              </ChartHeader>
              <PieChartSkeleton rows={3} />
            </Chart>
          </div>
        </VStack>
      </DrawerBody>
    </DrawerContent>
  </Drawer>
);
```

## What your app owns

| You own                                       | The DS owns                         |
| --------------------------------------------- | ----------------------------------- |
| Fetching the event, series, top N and records | Card frame, chart drawing, tooltips |
| Tab state, the selected record, resets        | Tabs strip, scroll areas            |
| List virtualisation and paging                | Item styles via tokens              |
| The link being copied, the toast              | Tooltip, button states              |

## Related

- [Detail drawer](https://wallarm.github.io/design-system/patterns/detail-drawer.md), [Entity table](https://wallarm.github.io/design-system/patterns/entity-table.md)
- [Filtering](https://wallarm.github.io/design-system/patterns/filtering.md), [Empty states](https://wallarm.github.io/design-system/patterns/empty-states.md)
