项目
在 GitHub 查看
jxnblk/react-x-ray
关于
React CSS 布局调试器
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React X-Ray
React CSS Layout Debugger

npm i react-x-ray
Demo: http://jxnblk.com/react-x-ray
Usage
import React from 'react'
import XRay from 'react-x-ray'
const App = props => (
<XRay>
<div style={{ padding: 32 }}>
<h1>Look at me!</h1>
</div>
</XRay>
)
Props
grid(number or boolean) pixel dimensions of background gridoutline(boolean) show element outlinescenter(boolean) center the background gridcolor(string) base color for grid and outlinesbackgroundColor(string) background color of XRay component
Inspired by Tachyons X-RAY
MIT License
探索相关项目
加载中…