🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

hig-react

Package Overview
Dependencies
Maintainers
3
Versions
449
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hig-react

hig components in react

0.12.0
Source
npm
Version published
Weekly downloads
663
3215%
Maintainers
3
Weekly downloads
 
Created
Source

hig-react

React components for the HIG

Table of Contents

  • Install
  • Usage

This project uses node and npm. Go check them out if you don't have them locally installed.

$ npm install --save @hig/hig-react

Then with a module bundler like rollup or webpack, use as you would anything else:

// using ES6 modules
import { Button } from '@hig/hig-react';

// Styles
import '@hig/hig-react/lib/hig-react.css';

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

The UMD build is also available on unpkg:

<script src="https://unpkg.com/@hig/hig-react/lib/hig-react.umd.js"></script>

You can find the library on window.ReactHIG.

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '@hig/hig-react';
import '@hig/hig-react/lib/hig-react.css';

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

FAQs

Package last updated on 06 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts