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 ToastProvider near 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
-
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