New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

armstrong-react

Package Overview
Dependencies
Maintainers
1
Versions
339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

armstrong-react

Rocketmakers Armstrong library of React components

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

armstrong-react

Armstrong React - Rocketmakers React component library.

Introduction

A library of components for React/SCSS interface development.

The Rokot platform components heavily rely on usage of the typings utility for typescript definitions management. If you don't have typings installed:

npm i typings -g

Getting Started

WARNING!: This library assumes you're using React and SASS.

Installation

Install via npm

npm i armstrong-react --save

Typings

You will need to install these ambient dependencies:

NOTE: you may already have some of these ambient dependencies installed!

typings install react underscore classnames node -SA

Importing the SCSS

To make use of the default styles, you'll need to import a single SCSS entry point from the module into your root stylesheet. The simplest way of achieving this is to use webpack's sass-loader plugin and add the following line to your root SCSS file:

@import "~armstrong-react/dist/style";

NOTE: If you're not using webpack, you can use an absolute or relative path through your node_modules folder.

Example: Adding a simple Armstrong Button (TypeScript/JSX):

import * as React from 'react';
import * as ReactDOM from 'react-dom';

import { Button } from "armstrong-react";

export class MyComponent extends React.Component<{}, {}> {

  private buttonClicked(e) {
    console.log('Clicked!')
  }

  public render() {
    return (
      <main>
        <h1>Below is a button!</h1>
        <Button text="Armstrong lives!" condition="info" onClick={ this.buttonClicked } />
      </main>
    );
  }
}

Consumed Libraries

Underscore
Classnames

Keywords

FAQs

Package last updated on 22 Apr 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc