# pyro-components

> components for the pyro framework

Latest version **0.0.12** (published 2017-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install pyro-components
pnpm add pyro-components
yarn add pyro-components
bun add pyro-components
```

## 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.12 |
| Published | 2017-11-24 |
| First published | 2017-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Evan Marsland |
| Maintainers | emars |

## Links

- npm: https://www.npmjs.com/package/pyro-components
- Repository: https://github.com/emars/pyro-components
- Homepage: https://github.com/emars/pyro-components#readme
- Issues: https://github.com/emars/pyro-components/issues
- npm.io page: https://npm.io/package/pyro-components

## Dependencies (10)

- [redux](https://npm.io/package/redux.md) ^3.7.2
- [firebase](https://npm.io/package/firebase.md) ^4.6.2
- [recompose](https://npm.io/package/recompose.md) ^0.26.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0
- [redux-saga](https://npm.io/package/redux-saga.md) ^0.16.0
- [material-ui](https://npm.io/package/material-ui.md) next
- [react-redux](https://npm.io/package/react-redux.md) ^5.0.6
- [redux-thunk](https://npm.io/package/redux-thunk.md) ^2.2.0
- [styled-components](https://npm.io/package/styled-components.md) ^2.2.3
- [hoist-non-react-statics](https://npm.io/package/hoist-non-react-statics.md) ^2.3.1

## Recent versions

- 0.0.12 (latest) — 2017-11-24
- 0.0.11 — 2017-11-24
- 0.0.10 — 2017-11-21
- 0.0.9 — 2017-11-21
- 0.0.8 — 2017-11-21
- 0.0.7 — 2017-11-17
- 0.0.6 — 2017-11-17
- 0.0.5 — 2017-11-17
- 0.0.4 — 2017-11-17
- 0.0.3 — 2017-11-17
- 0.0.2 — 2017-11-17
- 0.0.1 — 2017-11-17

## README

# Pyro Components

A big repo containing all of the components for pyro apps.

## Install

```
yarn add pyro-components
```

All components must be wrapped in a firebase provider (at the top level).

This is how they access firebase.

## Components

### Firebase Provider
```js
import React from 'react'
import YourApp from './your-app
import { FirebaseProvider } from 'pyro-components'
const firebaseApp = firebase.initializeApp()

const AppWithFirebase = () => (
    <FirebaseProvider {...{
        firebaseApp
    }}>
        <YourApp />
    </FirebaseProvider>
)
```

### Logout Button

TODO

### Notification Center

TODO

### Auth

```js
import React from 'react'
import { Auth } from 'pyro-components'

// login
const Login = () => (
    <Auth {...{
        isSignUp: false,
        onFail: reason => {
            // reason is an error code from: https://firebase.google.com/docs/reference/js/firebase.auth.Auth#signInWithEmailAndPassword
        },
        onSuccess: user => {
            // user is a https://firebase.google.com/docs/reference/js/firebase.User
        }
    }} />
)

// signup
const Signup = () => (
    <Auth {...{
        isSignUp: false,
        onFail: reason => {
            // reason is an error code from: https://firebase.google.com/docs/reference/js/firebase.auth.Auth#createUserWithEmailAndPassword
        },
        onSuccess: user => {
            // user is a https://firebase.google.com/docs/reference/js/firebase.User
        }
    }} />

)
```

## License

TBD

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