use-disclosure
Manage boolean state
Import
Source
Docs
Package
Usage
use-disclosure hook manages boolean state. It provides open, close and toggle handlers
and accepts optional onOpen and onClose callbacks. It can be used to manage controlled modals,
popovers and other similar components:
Callbacks
onOpen and onClose callbacks are called when opened state changes: