Skip to main content
Version: 1.0.3

DebugBox

DebugBox is a utility wrapper that overlays grid, spacing guides, breakpoints, and dimensions on any component, helping developers debug layouts visually.

DebugBox Overlay Example

Installation

ignix add component debugbox

Usage

Import the component:

import { DebugBox } from '@ignix-ui/debugbox';

Basic Example

function MyLayout() {
return (
<DebugBox
defaultShowGrid={true}
defaultShowSpacing={true}
>
<div className="p-8 bg-blue-100 rounded-lg">
Layout content to debug
</div>
</DebugBox>
);
}

Props

PropTypeDefaultDescription
childrenReact.ReactNode-The content to be wrapped and debugged
defaultShowGridbooleantrueWhether to show the alignment grid by default
defaultShowSpacingbooleantrueWhether to show spacing and boundary guides by default
defaultShowBreakpointsbooleantrueWhether to show the current breakpoint badge by default
defaultShowDimensionsbooleantrueWhether to show component dimensions by default