Documentation
HorseScreen
176×166 马/羊驼界面,鞍、马铠与可选箱子。
马
import { HorseScreen } from "./index";
/**
* HorseScreen 预览用例(规格 §6.2):鞍 + 铁马铠,箱子内装小麦
*/
export function HorseScreenDemo() {
return (
<HorseScreen
armor={{ count: 1, icon: "iron-horse-armor", tooltip: "铁马铠" }}
chest
chestItems={[{ count: 64, icon: "wheat", tooltip: "小麦 ×64" }]}
saddle={{ count: 1, icon: "saddle", tooltip: "鞍" }}
title="马"
/>
);
}
Install
CLI copy
$npx shadcn add @tennantite/horse-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/horse-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.