TrademarkTrademark
Docs
Ctrl k
Search docs...
Utils

dropdownState

Updated: June 30, 2026
View on GitHub

The dropdownState module provides typed getters and setters for the application-level "last opened dropdown" state. It replaces ad-hoc (window as any).lastOpenedDropdown references across components.

API reference

Type
Default
getLastOpenedDropdown
() => string | null—
setLastOpenedDropdown
(id: string | null) => void—
clearLastOpenedDropdown
() => void—
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club