@santosvilanculos/bevor-react
v0.2.3
Published
[](https://www.npmjs.com/package/@santosvilanculos/bevor-react) [](https://www.npmjs.com/package/@s
Readme
@santosvilanculos/bevor-react
Inertia 3 devtools built on top of TanStack DevTools. Uses the core package (@santosvilanculos/bevor-core) to display Inertia-specific debugging information.
Table of Contents
Installation
pnpm add @santosvilanculos/bevor-reactPeer Dependencies
This package requires the following peer dependencies:
@tanstack/react-devtools@inertiajs/core@inertiajs/reactreactreact-dom
Quick Start
import { TanStackDevtools } from '@tanstack/react-devtools';
import { inertia3DevtoolsPlugin } from '@santosvilanculos/bevor-react';
function App() {
return <TanStackDevtools plugins={[inertia3DevtoolsPlugin()]} />;
}Usage
Using the Plugin
The inertia3DevtoolsPlugin registers an Inertia panel within TanStack DevTools.
import { TanStackDevtools } from '@tanstack/react-devtools';
import { inertia3DevtoolsPlugin } from '@santosvilanculos/bevor-react';
function App() {
return <TanStackDevtools plugins={[inertia3DevtoolsPlugin()]} />;
}Using the Panel Directly
For custom configurations, you can import and render the Inertia3DevtoolsPanel component directly.
import { TanStackDevtools } from '@tanstack/react-devtools';
import { Inertia3DevtoolsPanel } from '@santosvilanculos/bevor-react';
function App() {
return (
<TanStackDevtools
plugins={[
{
name: 'Inertia 3',
render: (_, { theme }) => <Inertia3DevtoolsPanel theme={theme} />
}
]}
/>
);
}API
inertia3DevtoolsPlugin()
Creates a plugin for TanStack DevTools that displays Inertia debugging information.
import { inertia3DevtoolsPlugin } from '@santosvilanculos/bevor-react';
<TanStackDevtools plugins={[inertia3DevtoolsPlugin()]} />;Inertia3DevtoolsPanel
A React component that renders the Inertia devtools panel. Accepts a theme prop from TanStack DevTools.
import { Inertia3DevtoolsPanel } from '@santosvilanculos/bevor-react';
<Inertia3DevtoolsPanel theme="light" />;Inertia3DevtoolsPanelProps
Type for the props accepted by Inertia3DevtoolsPanel.
import type { Inertia3DevtoolsPanelProps } from '@santosvilanculos/bevor-react';