0.1.2 • Published 4 years ago

paroot-react v0.1.2

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

paroot-react@0.1.2

React integration for paroot

Installation

Add paroot-react as a dependency in your react project

npm install --save paroot-react

Import the default exported component for all parts

    import Paroot from 'paroot-react'

    return (
        <Paroot
            auth={auth}
            db={db}
            bgColor="#FFFFFF"
            textColor="#000000"
            primaryColor="#0000FF"
        />
    )

Or import any component you need

    import { Votes, Roadmap, SuggestionForm } from 'paroot-react'

    return (
        <Votes
            auth={auth}
            db={db}
            bgColor="#FFFFFF"
            textColor="#000000"
            primaryColor="#0000FF"
        />

        <Roadmap
            auth={auth}
            db={db}
            bgColor="#FFFFFF"
            textColor="#000000"
            primaryColor="#0000FF"
        />

        <SuggestionForm
            auth={auth}
            db={db}
            bgColor="#FFFFFF"
            textColor="#000000"
            primaryColor="#0000FF"
        />
    )