Documentation
FurnaceScreen
Input / fuel / 26×26 output slots with flame and arrow progress.
熔炉
import { FurnaceScreen } from "./index";
interface FurnaceScreenDemoProps {
burnProgress?: number;
cookProgress?: number;
}
/**
* FurnaceScreen 预览用例(规格 §6.2):铁矿石 → 铁锭
*/
export function FurnaceScreenDemo({ burnProgress = 0.8, cookProgress = 0.45 }: FurnaceScreenDemoProps = {}) {
return (
<FurnaceScreen
burnProgress={burnProgress}
cookProgress={cookProgress}
fuel={{ count: 3, icon: "charcoal", tooltip: "木炭" }}
input={{ icon: "iron-ore", tooltip: "铁矿石" }}
output={{ count: 1, icon: "iron-ingot", tooltip: "铁锭" }}
title="熔炉"
/>
);
}
Install
CLI copy
$npx shadcn add @tennantite/furnace-screennpm install
$pnpm add @tennantite/uinpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ui/src/screens/containers/furnace-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.