Documentation
MainMenu
Dirt background, title and 200×20 button stack.
TENNANTITE
import { MainMenu } from "./index";
/**
* MainMenu 预览用例(规格 §6.3)
*/
export function MainMenuDemo() {
return (
<MainMenu
actions={[
{ label: "单人游戏" },
{ label: "多人游戏" },
{ label: "设置" },
{ disabled: true, label: "最近的世界(无)" },
]}
className="h-120"
titleAs="p"
/>
);
}
Install
CLI copy
$npx shadcn add @tennantite/main-menunpm install
$pnpm add @tennantite/uinpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ui/src/screens/menus/main-menu/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.