kuzenbo-notifications-usage

📁 kuzenbodev/kuzenbo 📅 1 day ago
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/kuzenbodev/kuzenbo --skill kuzenbo-notifications-usage

Agent 安装分布

amp 1
cline 1
opencode 1
cursor 1
kimi-cli 1
codex 1

Skill 文档

Kuzenbo Notifications Usage

Use this skill for external app code that consumes the stable public package @kuzenbo/notifications@0.0.6.

Runtime Setup

  1. Install runtime dependencies:
npm install @kuzenbo/notifications @kuzenbo/core @kuzenbo/theme
  1. Load theme CSS once:
import "@kuzenbo/theme/prebuilt/kuzenbo.css";
  1. Add ToastProvider near app root before using notification hooks.

Toast Workflow

  1. Import from @kuzenbo/notifications/ui/toast.
  2. Use useToast() for most flows (success, error, info, warning, loading, promise).
  3. Use namespace primitives (Toast.Root, Toast.Content, etc.) only when custom composition is needed.
  4. Keep toast copy short, action-oriented, and non-blocking.

Guardrails

  • ToastProvider must exist in tree before calling useToast.
  • Use public @kuzenbo/notifications/ui/toast surface only.
  • Prefer toast.promise(...) for async lifecycle feedback.
  • If a requested capability is missing, fall back to exported primitives in references/toast-api.md.

References

  • references/toast-api.md