Ui

From graphif/project-graph · View interactive version

Ui is an AI agent skill from the GitHub repository graphif/project-graph. 建立于 shadcn/ui 之上的附加 UI 组件

How to use this skill

Skill file

ui

`Dialog` (`app/src/components/ui/dialog.tsx`)

`toast()` (`import { toast } from "sonner"`)

await toast
  .promise(
    async () => {
      // 异步操作
    },
    {
      loading: "promise进行中的提示",
      success: "resolve后的提示",
      error: "reject后的提示",
    },
  )
  // unwrap方法会直接把传入的promise返回出来
  .unwrap();
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.