When I am looking into the parameter section of useDisclosure hook, I am not able to see any table for the parameters. After the line: The useDisclosure hook accepts an optional object with the following properties: nothing is there.
As a user, I am expecting parameter names with descriptions and their default value.
Parameter
Type
Description
isOpen (Optional)
boolean
If true, the controlled component is responsible for changing the visible state via onClose and onOpen props.
defaultIsOpen (Optional)
boolean
If true, it sets the controlled component to its visible state
onClose
function
Function to set a falsy value for the isOpen parameter.
onOpen
function
Function to set a truthy value for the isOpen parameter.
Description
When I am looking into the parameter section of
useDisclosure
hook, I am not able to see any table for the parameters. After the line: The useDisclosure hook accepts an optional object with the following properties: nothing is there. As a user, I am expecting parameter names with descriptions and their default value.onClose
andonOpen
props.true
, it sets the controlled component to its visible stateIf accepted, I am happy to contribute.:)