用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RtlZeroMemory/Rezi --skill rezi-data-table命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Create a new screen/page for a Rezi TUI application. Use when adding views, pages, or screens to an app.
Profile and optimize Rezi app performance. Use when app feels slow, frames drop, or render phases take too long.
Add routing with guards and nested outlets to a Rezi app. Use when building multi-page/screen TUI applications.
基于 SOC 职业分类
正在显示 SKILL.md
| name | rezi-data-table |
| description | Add a data table with sorting, selection, and keyboard navigation. Use when displaying tabular data. |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Edit, Write |
| argument-hint | [data-source] |
| metadata | {"short-description":"Add data table"} |
Use this skill when:
packages/core/src/widgets/useTable.ts — useTable() hookpackages/core/src/widgets/types.ts — TablePropspackages/core/src/widgets/ui.ts — ui.table()packages/core/src/ui/recipes.ts — recipe.table() for design-system-consistent table stylingUse the useTable() hook inside a defineWidget:
import { defineWidget, ui, useTable } from "@rezi-ui/core";
const DataTable = defineWidget<{ items: Item[] }>((props, ctx) => {
const table = useTable(ctx, {
rows: props.items,
columns: [
{ key: "name", header: "Name", flex: 1 },
{ key: "size", header: "Size", width: 10, align: "right" },
],
getRowKey: (row) => row.id,
selectable: "multi",
});
return ui.table({
...table.props,
dsSize: "md",
dsTone: "default",
});
}, { name: "DataTable" });
Handle selection via table.selection (array of selected row keys)
Handle sorting via table.sortColumn and table.sortDirection
For large datasets, consider instead
Tables are recipe-styled by default when a ThemeDefinition preset is active.
Use dsSize / dsTone for explicit DS tuning when needed.
ui.virtualList()