use-disclosable
A react hook for managing dislosable elements

use-disclosable Logouse-disclosable Logo

Promise-based API

Get results directly from your dialogs with async/await. No callbacks or state management needed.

📚

Framework Agnostic

Works seamlessly with any UI library (Radix, Shadcn, Headless UI, custom components).

🔗

Type Safe

Full TypeScript support with complete type inference for props and return values.

💪

Zero Dependencies

Lightweight with no external runtime dependencies. Just React.

🌐

Global State

Open dialogs from anywhere without prop drilling. Built-in support for multiple instances.

🎬

Animation Ready

Built-in support for exit animations with destroyAfter option.