2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
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.
Prop
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