0.0.2-alpha.0 • Published 6 years ago

@squiz/button v0.0.2-alpha.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

@squiz/button

Used for performing actions at the press of a click.

Install

To download the CSS for this component run:

npm i @squiz/button

The CSS is to use within your app is located in: node_modules/@squiz/button/lib/css/button.min.css

Usage

This component can be used in a variety of frameworks.

React

import React from 'react';
import 'node_modules/@squiz/button/lib/css/button.min.css';

const Button = () => (
  <button className="btn btn-primary">Click me!</button>
);

export default Button;

Angular

@Component({
    templateUrl: "button.html",
    selector: "btn-primary",
    styleUrls: ["node_modules/@squiz/button/lib/css/button.min.css"],
})

Static HTML

To import this component into a static site just include it into your HTML link element like so:

<link href="node_modules/@squiz/button/lib/css/button.min.css" rel="stylesheet" type="text/css">
0.0.2-alpha.0

6 years ago