Documentation
ThermalLayoutSlot
Thermal layout slot: injects an item by role label and forwards clicks.
import { THERMAL_DEMO_SMOOTH_STONE } from "../thermal-demo-data";
import { ThermalLayoutSlot } from "./index";
export function ThermalLayoutSlotDemo() {
return (
<div className="relative size-16">
<ThermalLayoutSlot item={THERMAL_DEMO_SMOOTH_STONE} label="demo-slot" left={8} top={8} />
</div>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/thermal-layout-slot/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.