1.1.0 • Published 8 months ago
@realgenoux/layout-debug-tool v1.1.0
Layout Debug Tool
Visual debugging tool for React layouts with breakpoint indicators, grid overlays, spacing inspector, and element borders.
Install
npm install layout-debug-toolQuick Start
import { LayoutDebug } from 'layout-debug-tool';
function App() {
return (
<LayoutDebug>
<YourApp />
</LayoutDebug>
);
}Features
- Breakpoint Indicator: Shows current responsive breakpoint
- Grid Overlay: Visualizes your layout grid (customizable columns, width, etc.)
- Spacing Inspector: Hover elements to see distances to siblings
- Element Borders: Outlines all elements for boundary visualization
Controls
- Toggle All: Press
Shift + Gto show/hide debug UI - Options Panel: Right-click toggle button (bottom-right) for feature settings
Configuration
// Example custom configuration
const config = {
grid: {
columns: 24,
contentWidth: 1440,
margin: 40,
gutter: 16,
},
appearance: {
columnColor: '#ff00ff',
}
};
<LayoutDebug config={config}>
<YourApp />
</LayoutDebug>1.1.0
8 months ago