use-disclosure
Manages boolean state and provides controls to toggle it
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: