An open API service indexing awesome lists of open source software.

https://github.com/itsdouges/react-library-boilerplate

🚂🍽 for js libraries I make. nyc, codecov, travis.
https://github.com/itsdouges/react-library-boilerplate

Last synced: 11 months ago
JSON representation

🚂🍽 for js libraries I make. nyc, codecov, travis.

Awesome Lists containing this project

README

          

# [react-library-boilerplate](https://github.com/madou/react-library-boilerplate)

[![NPM version](http://img.shields.io/npm/v/react-library-boilerplate.svg?style=flat-square)](https://www.npmjs.com/package/react-library-boilerplate)
[![NPM downloads](http://img.shields.io/npm/dm/react-library-boilerplate.svg?style=flat-square)](https://www.npmjs.com/package/react-library-boilerplate)
[![Build Status](http://img.shields.io/travis/madou/react-library-boilerplate/master.svg?style=flat-square)](https://travis-ci.org/madou/react-library-boilerplate)
[![codecov](https://codecov.io/gh/madou/react-library-boilerplate/branch/master/graph/badge.svg)](https://codecov.io/gh/madou/react-library-boilerplate)
[![Dependency Status](http://img.shields.io/david/madou/react-library-boilerplate.svg?style=flat-square)](https://david-dm.org/madou/react-library-boilerplate)

Quick description of what it does!



## Installation

```sh
npm install react-library-boilerplate
```

## Usage

```javascript
import 'react-library-boilerplate/styles.css';
import ReactStickyHeader from 'react-library-boilerplate';
import ReactDOM from 'react-dom';

ReactDOM.render(

ReactStickyHeader


  • When

  • Why

  • About



}
>

// More header stuff here, this won't be sticky.

,
document.getElementById('container')
);
```

| prop | type | required |
|-|-|-|
| children | Children | no |
| header | Children | yes |
| backgroundImage | string | no |
| backgroundColor | string | no |
| headerOnly | boolean | no |
| onSticky | (boolean) => void | no |
| className | string | no |

### React Story Book

To run the component in various modes, run the following command then go to `http://localhost:6006/`.

```bash
npm start
```

### Testing

```bash
npm test
```