react-hig
React components for the HIGTable 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>
)
}
}