Home > widget-integration > ISWState

ISWState interface

Internal state management for the ISW controller.

**Legacy**: State was managed via global variables (keyboardNavIndex, currentSearch) **New**: Encapsulated in ISWState interface with proper typing

Signature:

export interface ISWState 

Properties

Property

Modifiers

Type

Description

activeInputId

string | null

ID of the currently active search input element

currentQuery

string

Current search query string

isLoading

boolean

Whether a search request is in progress

isOpen

boolean

Whether the suggestion dropdown/overlay is currently open

keyboardNavIndex

number

Current keyboard navigation index (-1 means input focused)