# Box Kite 2.4.2

_Box Kite 2.4.2 · a markdown copy of https://www.box-kite.dev/releases/2.4.2/_

_26 November 2026 · [npm](https://www.npmjs.com/package/@box-kite/react) · [Compare v2.4.1...v2.4.2](https://github.com/box-kite/box-kite/compare/v2.4.1...v2.4.2)_

A menu, popover or dialog inside a React Flow node no longer deletes or moves the node, and a component's look and size combine in one `variant`. `@box-kite/mcp` now shows an agent each component's style tree with its variants.

## A menu inside a React Flow node no longer deletes the node

A layer in the top layer still sits inside its node in the DOM, so its presses, wheels and keys bubble to the canvas: Backspace on a menu item deleted the selected node, an arrow key moved it, and Safari took the Backspace as Back. `<LayerScope>` (from `@box-kite/react/a11y`) wraps a surface that owns the gestures once, and every layer inside it — `Overlay`, `Popover`, `Menu`, `Dialog`, `Tooltip`, `Dropdown`, `Combobox`, the date pickers and the DataGrid menus — carries the surface's opt-out classes. `isolate` keeps chosen events inside each layer after the layer has handled them: a React handler on any ancestor and a listener on `document` never see them, and a Backspace nothing editable consumed is cancelled.

```tsx
import { LayerScope } from '@box-kite/react/a11y';

<LayerScope className="nodrag nowheel nokey" isolate={['key']}>
  <ReactFlow nodes={nodes} edges={edges} nodeTypes={nodeTypes} />
</LayerScope>;
```

See [Menus and popovers inside a node](https://www.box-kite.dev/diagrams/#layers).

## A look and a size combine in one `variant`

`<Button variant={['square', 'compact']}>` was a type error, although it always rendered correctly: the type accepted an array of one variant name, not of several. An array, nested arrays and a record now take any mix of a component's variants, and a name the component does not have is still an error.

```tsx
<Button variant={['secondary', 'compact']}>Close</Button>
```

## Breaking changes

None.

## Fixes

- **`get_component` in `@box-kite/mcp` printed `[object Object]` for every node of a component's style tree.** It now lists each `Box.components()` key indented by depth, with what it extends and its variants — `button` lists `secondary`, `ghost`, `compact`, `normal`, `large` and `square`.

---

_Every page: https://www.box-kite.dev/llms.txt · every prop, measured: https://www.box-kite.dev/props.md_

