This folder contains all the ready to go plugins that you can copy/paste into your project.
Plugins extend the React Router DevTools by adding custom tabs to the TanStack devtools interface.
If you build a plugin please feel free to create a PR towards the plugins folder so we can add it to the list of plugins.
- Create a
pluginsdirectory in your project root (or any other directory you prefer) - Copy the plugin file(s) you want to use into this directory
- Configure the Vite plugin to load plugins from your directory:
// vite.config.js
import { reactRouterDevTools } from 'react-router-devtools'
export default {
plugins: [
reactRouterDevTools({
pluginDir: './plugins' // path to your plugins directory
})
]
}- The plugins will be automatically imported and added as tabs in the devtools
Note: Plugins are only loaded in development mode for performance reasons.
Each plugin should export a function that returns an object with the following structure:
export const myPlugin = () => ({
name: "My Plugin", // Display name for the tab
render: <MyComponent /> // React component to render
})The plugin will be automatically detected and loaded by scanning for export const statements in the plugin directory.
- Icon Library - Browse and copy all your project icons with different sizes
- Tailwind Palette - View and copy Tailwind color classes
Each plugin has a README.md file with detailed setup instructions.
All the plugins featured under this folder are meant to be copy/pasted into your project with you having all the rights to modify them as you see fit. Feel free to add/remove whatever you like. If you add something cool, please share it with us so we can add it to the list of plugins or improve the existing ones.
- Fork the repo
- Create a new folder under
pluginswith the name of your plugin - Add a
README.mdfile with the instructions on how to use the plugin - Add TODO's in the code where the user needs to modify the code to their project specifications
- Add an image/video/gif of the plugin in action
- Create a PR towards the repository!