kuzenbo-notifications-usage
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
- Install runtime dependencies:
npm install @kuzenbo/notifications @kuzenbo/core @kuzenbo/theme
- Load theme CSS once:
import "@kuzenbo/theme/prebuilt/kuzenbo.css";
- Add
ToastProvidernear app root before using notification hooks.
Toast Workflow
- Import from
@kuzenbo/notifications/ui/toast. - Use
useToast()for most flows (success,error,info,warning,loading,promise). - Use namespace primitives (
Toast.Root,Toast.Content, etc.) only when custom composition is needed. - Keep toast copy short, action-oriented, and non-blocking.
Guardrails
ToastProvidermust exist in tree before callinguseToast.- Use public
@kuzenbo/notifications/ui/toastsurface 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