图形视图
所有页面的图形。
安装
您可以通过 CLI 安装此组件:
Install to your codebase
Easier customisation & control.
使用方法
您可以在 MDX 文件或布局组件中使用它(例如在 page.tsx 中):
import { GraphView } from '@/components/graph-view';
import { buildGraph } from '@/lib/build-graph';
export function PageBody() {
return (
<div>
<GraphView graph={buildGraph()} />
{/* ... */}
</div>
);
}How is this guide?
Last updated on
