GithubHelp home page GithubHelp logo

pi-ui's Introduction

pi-ui

Build Status

Politeia UI library documentation

NPM JavaScript Style Guide

Install

Make sure you have nodejs 8+ and yarn or npm installed.

yarn

yarn add pi-ui

npm

npm install --save pi-ui

Usage

In the index file of your app make sure to import the styles for the lib:

  • index.js:
import "pi-ui/dist/index.css";
  • Component.js:
import React, { Component } from "react";

import { Button } from "pi-ui";

class Example extends Component {
  render() {
    return <Button />;
  }
}

Developing

  • Clone this repository

  • Install all deps by running: yarn

  • If you're developing only on pi-ui, serving the live documentation should be enough: yarn docz:dev

  • If you want to see your changes reflected in a project consuming pi-ui, you can use yarn link:

    • Go to the pi-ui directory on your machine and run: yarn link
    • Go to the project using pi-ui and run: yarn link pi-ui

Troubleshooting: If you find some kind of incompatibility between react versions, link the react package from the main repository into pi-ui:

  • Go to the main repository which is using the pi-ui lib, access the react folder inside its node_modules:
    • cd /some/project/node_modules/react && yarn link
    • cd /pi-ui && yarn link react

pi-ui's People

Contributors

amass01 avatar crypto-rizzo avatar dajohi avatar fernandoabolafio avatar tiagoalvesdulce avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.