Git Product home page Git Product logo

aragon-ui's Introduction

Aragon UI

What is it?

Aragon UI is a React library used to build user interfaces for Aragon and its related projects. It provides the components needed to build experiences that feel integrated with Aragon ecosystem, and can be used both client or server side.

Used by:

Getting Started

Install it from npm:

npm install --save @aragon/ui

Aragon UI require some assets (e.g. fonts) in order to work properly. These need to be copied where they can be accessed by the library, like the public/ directory of a project using Create React App.

To copy these assets, use the copy-aragon-ui-assets command provided by Aragon UI:

npx copy-aragon-ui-assets ./public

This emplacement has to be communicated to the library using <AragonApp>, so that the assets can be accessed by the components down the tree.

import { AragonApp } from '@aragon/ui'

const App = () => (
  <AragonApp publicUrl="/aragon-ui-assets/">
    <h1>Hello Aragon UI</h1>
  </AragonApp>
)

Your project is now ready to use Aragon UI. 💫

Open https://ui.aragon.org/ for a list of the available components and how to use them.

Assets Synchronization (optional)

You may also want to add it as a step in your project scripts, so that upgrading Aragon UI can be done without having to worry about these.

"scripts": {
  "sync-assets": "copy-aragon-ui-assets ./public",
  "build": "npm run sync-assets && react-scripts build",
  "start": "npm run sync-assets && react-scripts start"
}

See copy-aragon-ui-assets -h for more information.

Build & Develop

Clone this repository, install the dependencies:

npm install

Build:

npm run build

Auto rebuild:

npm run dev

Run the devbox (to develop a component in isolation):

cd devbox
npm install
npm start

License

MIT, see LICENSE.

aragon-ui's People

Contributors

2color avatar aquigorka avatar bpierre avatar deamme avatar drcmda avatar fiberjw avatar gasolin avatar huanzhang89 avatar izqui avatar josx avatar kdichev avatar lmcorbalan avatar luisivan avatar macor161 avatar monokh avatar onbjerg avatar sohkai avatar

Watchers

 avatar

Forkers

lovetrading10

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.