Documentation
LoomScreen
176×166 织布机界面,旗帜/染料/图案与结果槽。
织布机
import { LoomScreen } from "./index";
/**
* LoomScreen 预览用例(规格 §6.2):原版无 16×16 旗帜物品贴图,
* 旗帜/产物槽留空以免展示石头旗帜;只保留染料与图案选择。
*/
export function LoomScreenDemo() {
return (
<LoomScreen
dye={{ count: 1, icon: "blue-dye", tooltip: "蓝色染料" }}
title="织布机"
/>
);
}
Install
CLI copy
$npx shadcn add @tennantite/loom-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/loom-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.