# inspx
**Repository Path**: mirrors_trending/inspx
## Basic Information
- **Project Name**: inspx
- **Description**: Pixel perfect layout inspection.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-05-07
- **Last Updated**: 2026-07-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

## inspx

Pixel perfect layout inspection.
> Built for React as a proof of concept.
## Setup
Install the package:
```sh
npm install inspx --save-dev
```
Wrap the root of your application or arbitrary component trees:
```tsx
import Inspect from 'inspx';
```
## Usage
Inspect elements by hovering an element and holding Option (⌥) simultaneously.

By default, any element with padding, margin, or width and height is inspectable.
You can disable certain properties:
```tsx
```
## Configuration
By default, the component will only be enabled in the development environment.
You can configure this behavior with the `disabled` prop:
```tsx
```
Optionally, you can leverage code splitting by wrapping the exported component and using your own instead.
> The library is lightweight enough for this to likely be a premature and insignificant optimization.
```tsx
import * as React from 'react';
import { InspectProps } from 'inspx';
const Inspect = React.lazy(() => import('inspx'));
export default function Loader(props: InspectProps) {
if (process.env.NODE_ENV === 'production') {
return props.children;
}
return (
);
}
```