Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jxnblk/react-x-ray

React CSS Layout Debugger
https://github.com/jxnblk/react-x-ray

css debug layout react

Last synced: 4 days ago
JSON representation

React CSS Layout Debugger

Awesome Lists containing this project

README

        

# React X-Ray

React CSS Layout Debugger

![demo](docs/x-ray.gif)

```sh
npm i react-x-ray
```

Demo:

## Usage

```jsx
import React from 'react'
import XRay from 'react-x-ray'

const App = props => (


Look at me!




)
```

## Props

- `grid` (number or boolean) pixel dimensions of background grid
- `outline` (boolean) show element outlines
- `center` (boolean) center the background grid
- `color` (string) base color for grid and outlines
- `backgroundColor` (string) background color of XRay component

Inspired by [Tachyons X-RAY](http://tachyons.io/xray/)

MIT License