@tanstack/react-router-devtools
Version:
Modern and scalable routing for React applications
34 lines (33 loc) • 1.06 kB
text/typescript
import { default as React } from 'react';
import { AnyRouter } from '@tanstack/react-router';
export interface DevtoolsPanelOptions {
/**
* The standard React style object used to style a component with inline styles
*/
style?: any;
/**
* The standard React class property used to style a component with classes
*/
className?: string;
/**
* A boolean variable indicating whether the panel is open or closed
*/
isOpen?: boolean;
/**
* A function that toggles the open and close state of the panel
*/
setIsOpen?: (isOpen: boolean) => void;
/**
* Handles the opening and closing the devtools panel
*/
handleDragStart?: (e: any) => void;
/**
* A boolean variable indicating if the "lite" version of the library is being used
*/
router?: AnyRouter;
/**
* Use this to attach the devtool's styles to specific element in the DOM.
*/
shadowDOMTarget?: ShadowRoot;
}
export declare const TanStackRouterDevtoolsPanel: React.FC<DevtoolsPanelOptions>;