clayrisser / xray-first-react

build react applications using the xray first design approach

Home Page:https://codejam.ninja

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xray-first-react

GitHub stars

build react applications using the xray first design approach

Please ★ this repo if you found it useful ★ ★ ★

Features

  • Automatically generates colors to differentiate sections
  • Option to hide content to help zero in on styling
  • Options to show labels of sections

Demo

View live demo at codejamninja.github.io/xray-first-react

Installation

npm install --save xray-first-react

Dependencies

Usage

import React, { Component } from 'react';
import { XrayProvider, Xray } from 'xray-first-react';

const { env } = process;

export default class App extends Component {
  render() {
    return (
      <XrayProvider enabled={env.NODE_ENV === 'true'}>
        <Xray label="content">
          <div>
            Hello, world
          </div>
        </Xray>
      </XrayProvider>
    )
  }
}

Support

Submit an issue

Screenshots

Contribute a screenshot

Contributing

Review the guidelines for contributing

License

MIT License

Jam Risser © 2018

Changelog

Review the changelog

Credits

Support on Liberapay

A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.

Add some fuel if you'd like to keep me going!

Liberapay receiving Liberapay patrons

About

build react applications using the xray first design approach

https://codejam.ninja

License:MIT License


Languages

Language:JavaScript 96.7%Language:HTML 3.3%