Components / Interactionsv1.0.0 · updated 2026-10-01
Direction Grid
Premium · $19Each 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
Customize
Accent
Install
No dependencies beyond React. Copy the file and import it.
- Download the package from your library after purchase and add it to your project.
- Make sure the Brazen tokens are loaded (
tokens.css); colours and timing come from them. - Import it and pass the props below.
Props 3
| Prop | Type | Default | Description |
|---|---|---|---|
items | { title: string; meta: string }[] | — | Cells to render. |
columns | number | 4 | Columns 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@>=19peer
Works with
- React 19
- Next.js 15+
- TypeScript
Reduced motion
Fill appears without sliding.