App UI kits › Respawn › Inventory

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.

Inventory props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosRWPhotos
input'auto' | 'pad' | 'keys'
assetsstring
onOpen(to: string) => voidCalled 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>) => voidCalled after every change with the grid (item ids by cell) and the worn slots.

Methods on the ref

Use it in React

import RespawnInventory from './RespawnInventory';

<RespawnInventory />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Respawn

Good for: Game UI kit.