# ramatrix

> React availability matrix

Latest version **0.0.155** (published 2016-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install ramatrix
pnpm add ramatrix
yarn add ramatrix
bun add ramatrix
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.155 |
| Published | 2016-08-30 |
| First published | 2016-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jamison Hyman |
| Maintainers | jhyman2 |
| Keywords | react-component, react, availability, matrix, react-availability |

## Links

- npm: https://www.npmjs.com/package/ramatrix
- Repository: https://github.com/jhyman2/ramatrix
- Issues: https://github.com/jhyman2/ramatrix/issues
- npm.io page: https://npm.io/package/ramatrix

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^15.3.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.155 (latest) — 2016-08-30
- 0.0.154 — 2016-08-27
- 0.0.152 — 2016-08-27
- 0.0.151 — 2016-08-27
- 0.0.15 — 2016-08-27
- 0.0.149 — 2016-08-16
- 0.0.148 — 2016-08-15
- 0.0.147 — 2016-08-14
- 0.0.146 — 2016-06-01
- 0.0.145 — 2016-06-01
- 0.0.144 — 2016-05-30
- 0.0.143 — 2016-05-28
- 0.0.142 — 2016-05-28
- 0.0.140 — 2016-05-28
- 0.0.14 — 2016-05-28
- … 5 more at https://npm.io/package/ramatrix/versions

## README

[![Stories in Ready](https://badge.waffle.io/jhyman2/ramatrix.png?label=ready&title=Ready)](https://waffle.io/jhyman2/ramatrix)
# Ramatrix (React Availability Matrix)

> A react component to gather a user's hourly availability.

## Install
```
npm install ramatrix --save
```

## Usage within a React component
```
import Ramatrix from 'ramatrix';

// call this function when you want to get the matrix data
getMatrixData () {
  console.log(this._myMatrix.getData()); // "{"7AMTh":true,"8AMTh":true.....
}

render () {
  return (
    <Ramatrix ref={(c) => this._myMatrix = c}/>
  );
}
```

## Customizable options
Props can be passed for data and styling customization

`militaryTime - boolean (true/false) | default - false`
 - Will display hours from 0 - 23 or 12AM - 12PM

`containerStyle - reactStyling object | default - display: inline-block;`
 - styling that will be applied to outer container

`cellWidth - reactStyling object | default - 65px`
 - width that will be applied to individual cells

![SSS1](https://github.com/jhyman2/ramatrix/blob/master/screenshot.png?raw=true)

## Contribute/Development
<h3>Compiling for development</h3>

Simply run `npm install` and `npm run dev` from the root of the project.  This will run webpack-dev-server on port 8080.

<h3>Preview in a browser!</h3>
```
localhost:8080
```

<h2>Authors</h2>
* [jhyman2](https://github.com/jhyman2)
* [kevcoxe](https://github.com/kevcoxe)

<h2>Links</h2>
* [git repo](https://github.com/jhyman2/ramatrix)
* [npm](https://www.npmjs.com/package/ramatrix)

---
_Source: https://npm.io/package/ramatrix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
