usePromiseDisclosure

usePromiseDisclosure is a custom hook that helps handle common open/close or toggle scenarios with promises. It can be used to control components such as Modal, Dialog, Drawer, etc.

ć ā€¦å¤§åœ°ć‚ˆęµ·ć‚ˆć€€ćć—ć¦ē”Ÿćć¦ć„ć‚‹ć™ć¹ć¦ć®ć€€ćæć‚“ćŖā€¦

ć“ć®ć‚Ŗćƒ©ć«ć»ć‚“ć®ć”ć‚‡ć£ćØćšć¤ć ć‘å…ƒę°—ć‚’ć‚ć‘ć¦ćć‚Œā€¦ļ¼ļ¼ļ¼

Usage

import { usePromiseDisclosure } from "@yamada-ui/react"
const { open, onClose, onOpen, onSuccess } = usePromiseDisclosure()