Skip to content
Proyek

Tentang

Debugger tata letak CSS untuk React

Pengembangan web dan aplikasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

React X-Ray

React CSS Layout Debugger

demo

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 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

MIT License

Jelajahi proyek terkait

Memuat…