INDUSTRIAL PROTOCOLSSYSTEM FEEDBACKTOAST

Toast

A non-interruptive system notification artifact. Engineered for high-visibility operational feedback within the architectural flow.

Execution

Core
Positions
Variants
// Note: This demo uses a local ToastProvider to isolate coordinate testing.

API Reference

Core
PropTypeDefaultDescription
titlestring-The bold header text of the notification.
descriptionstring-The technical details displayed in monospace.
type"info" | "success" | "warning" | "error""info"Operational status level for color coding.
durationnumber5000Time in milliseconds before auto-decommissioning.
position"top-left" | "top-right" | "bottom-left" | "bottom-right""bottom-right"Anchor position of the toast stack on the screen.

Usage

Core
// app/layout.tsx <ToastProvider position="bottom-right"> {children} </ToastProvider> // Usage within components: const { toast } = useToast(); toast({ title: "PROTOCOL_INITIALIZED", description: "Secure node established successfully.", type: "success", });