App UI kits › Respawn › Inventory
Drag items between cells and they spring into place, swap or stack; the plate compares what you hover with what you wear, and the weight bar warns before you are over.
Inventory is a screen from Respawn, an app ui kit with 8 screens: A game interface kit on a 16:9 screen: title menu, HUD, inventory, skill tree, journal, pause, settings and loading, driven by a controller. Price: $5 for the whole pack.
Built with: spring drag and swap, compare with equipped, weight limit.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | RWPhotos | ||
input | 'auto' | 'pad' | 'keys' | ||
assets | string | ||
onOpen | (to: string) => void | Called with 'tab:<id>' (L / R), 'close' (Back with nothing held), 'equip:<item>', 'drop:<item>', 'use:<item>'. | |
onChange | (grid: (string | null)[], worn: Record<string, string | null>) => void | Called after every change with the grid (item ids by cell) and the worn slots. |
press(a: 'up' | 'down' | 'left' | 'right' | 'ok' | 'back' | 'alt' | 'menu'): voidfocusCell(i: number): voiddestroy(): voidimport RespawnInventory from './RespawnInventory';
<RespawnInventory />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Game UI kit.