App UI kits › Respawn › HUD
A compass with the tracked objective, health, stamina and air, a hotbar and the tide ribbon; hold to salvage and the ring fills, the wire rolls into the count and the quest ticks on.
HUD 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: hold-to-salvage ring, tide ribbon, low-air state.
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 | ||
state | 'explore' | 'low' | Start state: exploring, or with air low. | |
holdMs | number | 900) | Hold time for salvage, in ms (default 900). |
onOpen | (to: string) => void | Called with 'journal' (menu button), 'pause' (back) or 'salvage:<item id>'. |
press(a: 'left' | 'right' | 'ok' | 'alt' | 'menu' | 'back'): void: Drive it like the pad: left/right pick a hotbar slot, ok uses it, alt is held to salvage (call release() to let go).release(): voidsetAir(v: number): voidsetHeading(deg: number): voiddestroy(): voidimport RespawnHud from './RespawnHud';
<RespawnHud />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Game UI kit.