Get the kit
Components / Interactionsv1.0.0 · updated 2026-10-01

Direction Grid

Premium · $19

Each cell works out which edge the pointer entered from and slides its fill in from that side, then out through the edge it left. The grid uses the Brazen hairline rule so the gaps are the borders.

gridhovernavigation
Premium
Customize
Accent

Install

No dependencies beyond React. Copy the file and import it.

  1. Download the package from your library after purchase and add it to your project.
  2. Make sure the Brazen tokens are loaded (tokens.css); colours and timing come from them.
  3. Import it and pass the props below.

Props 3

PropTypeDefaultDescription
items{ title: string; meta: string }[]—Cells to render.
columnsnumber4Columns on wide screens (2 on mobile).
onSelect(item) => void—Called when a cell is chosen.

Features

  • Entry and exit edge detection
  • Any column count
  • Keyboard focus fill
  • Pure CSS transforms

Dependencies

  • react@>=19 peer

Works with

  • React 19
  • Next.js 15+
  • TypeScript

Reduced motion

Fill appears without sliding.

Related