use-disclosure
Manages boolean state, provides open, close and toggle handlers, usually used with modals, drawers and popovers
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: