MetalUI / Soft Hardware

React · SwiftUI · agent guides

Slab

The thick panel a gadget is cut from: one of the seven materials, lit by the one light, with rolled edges and cuts (slot, hole, tray, well) whose floors are the slab's own material in shadow.

Use it for

  • The body of a slab gadget: the panel faders slide in, jacks sit in, keycaps rest in.
  • A panel with cuts: a slot for a fader, a hole for a lamp or a jack, a tray for keys, a shallow well.

Don't use it for

  • A surface people put content on: that is a Surface or a Well.
  • A control: a slab is never pressed. Strike it only as part of a gadget's act.

Read the Slab agent guide · Copy registry source

Explore the documentation · Agent index · Source on GitHub