Shape of the status-bar context: the current status text plus setters for
sticky and transient (auto-clearing) messages.
Example
const { setStatusText, flashStatusText } =useStatusBar(); setStatusText("https://example.com"); // sticky until cleared flashStatusText("Copied!", 1500); // clears after 1.5s
Source
interfaceStatusBarContextValue { /** Current status message, or `null` when hidden. */ statusText:string|null; /** Sets a sticky status message (pass `null` to clear). */ setStatusText: (text:string|null) =>void; /** Shows a message that auto-clears after `durationMs` (default 1000ms). */ flashStatusText: (text:string, durationMs?:number) =>void; }
Shape of the status-bar context: the current status text plus setters for sticky and transient (auto-clearing) messages.
Example
Source