@orion-ui/react-hig

hig components in react

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@orion-ui/react-hig
1.0.3-alpha.b15738757 years ago7 years agoMinified + gzip package size for @orion-ui/react-hig in KB

Readme

react-hig
React components for the HIG

Table of Contents


This project uses node and npm. Go check them out if you don't have them locally installed.
$ npm install --save @orion-ui/react-hig

Then with a module bundler like rollup or webpack, use as you would anything else:
// using ES6 modules
import { Button } from '@orion-ui/react-hig';

// Styles
import '@orion-ui/react-hig/react-hig.css';

// using CommonJS modules
var ReactHIG = require('@orion-ui/react-hig');
var Button = ReactHIG.Button;

The UMD build is also available on unpkg:
<script src="https://unpkg.com/@orion-ui/react-hig/lib/react-hig.umd.js"></script>

You can find the library on window.ReactHIG.

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '@orion-ui/react-hig';

class App extends React.Component {
  render() {
    return (
      <div>
        <Button title="Hello World!" />
      </div>
    )
  }
}