Skip to content

Interface TaskbarContext ​

Source: taskbarSlots.ts

Context for Taskbar.

Properties ​

activeMenu ​

activeMenu: "search" | "home" | "indicator" | null

The current active menu in the taskbar.


setActiveMenu ​

setActiveMenu: (menu: "search" | "home" | "indicator" | null) => void

Sets the current active menu in the taskbar.

Parameters ​

"search" | "home" | "indicator" | null

Returns ​

void


toggleMenu ​

toggleMenu: (menu: "search" | "home" | "indicator" | null, active?: boolean) => void

Toggles the active state of a menu in the taskbar.

Parameters ​

"search" | "home" | "indicator" | null

active? ​

boolean

Returns ​

void


searchQuery ​

searchQuery: string

The search query for the search menu in the taskbar.


setSearchQuery ​

setSearchQuery: Dispatch<string>

Sets the search query for the search menu in the taskbar.


searchInputRef ​

searchInputRef: RefObject<HTMLInputElement>

Built by Prozilla