BeagleProvider component wraps your application to enable the Beagle inspector and logging functionality.
Props
Controls whether Beagle is enabled. When
false, all logging is disabled and the inspector is not available. Useful for disabling Beagle in production builds.Optional function to handle copying text to clipboard. If not provided, copy functionality will be unavailable in the inspector.
Visual theme for the Beagle inspector interface.
Your application’s root component.
Usage
Conditional Rendering
Theenabled prop allows you to conditionally enable Beagle based on your environment:
BeagleProvider renders a minimal context provider with no-op functions, ensuring zero overhead in production.