HUD
When the user takes an action that has the side effect of closing Raycast (for example when copying something in the Clipboard), you can use a HUD to confirm that the action worked properly.

A HUD will automatically hide the main window and show a compact message at the bottom of the screen.
async function showHUD(title: string): Promise<void>;
import { showHUD } from "@raycast/api";
export default async function Command() {
await showHUD("Hey there 👋");
}
Name | Description | Type |
---|---|---|
title* | The title that will be displayed in the HUD. | string |
A Promise that resolves when the HUD is shown.
Last modified 4mo ago