Skip to main content
The useBeagle hook provides a simple interface to control the Beagle inspector from your components.

Return Value

The hook returns an object with the following property:
() => void
Opens the Beagle inspector modal, displaying all captured logs.

Usage

The primary use case is to provide a button or UI element that opens the inspector:

Floating Debug Button

Create a floating button to easily access the inspector during development:

Conditional Rendering

Only show the inspector button in development:

Type Definition