Appearance

A design for the whole site, in light or dark. Kept on this device.

Design
Mode

Box Kite 2.4.2

26 November 2026
What changed in this version, written as it landed. The same notes are the body of the GitHub release.

26 November 2026 · npm · 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.

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

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.

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