segment_react

1.0.0 • Public • Published

Segment React Component Library

Node.js CI Coverage Status

Getting started

Segment react components are built using functional component patterns.

To develop locally you can run the start script to serve a web server. Eventually there will be docs that you will develop in and publish to github pages.

This approach is manual but it does have the added benefit of isolation and full control.

Docs

Visit the docs here

CSS (v1.0.0)

This library is intended to be used with SEGMENT CSS. You will need to include the css files to have proper styling.

SEGMENT CSS

You must also include the Eric Meyer reset file inside of your project. I wanted to keep this separate so you could device loading strategy.

EM RESET

You must also include material icons inside your index.html file for icons to work.

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Running the App & output components

Right now this is for local development, you will link this with your other project. You can add your own publish step to NPM.

Create a final build

npm run build

Link for development

npm link

Run in watch mode for development

npm run dev

Run unit tests

npm run test

or

npm run test:watch || npm run test:coverage

Usage

All components are named exports and can be referenced like so:

import { Button } from 'segment_react'

React Version

SEGMENT REACT requires React ^16.8.1

Readme

Keywords

none

Package Sidebar

Install

npm i segment_react

Weekly Downloads

3

Version

1.0.0

License

none

Unpacked Size

9.8 kB

Total Files

3

Last publish

Collaborators

  • jdesign_jason