@centrapass/component-library
TypeScript icon, indicating that this package has built-in type declarations

0.2.16 • Public • Published

CentraPass Component Library

Helper components to build CentraPass frontends

Storybook

Can be used to try out the components and even generate code for certain configs. Install using yarn and then run storybook using yarn storybook

Usage

CentraPassContext

This context is used to set the configuration all CentraPass Components will use such as the primary colour and secondary colour and other project wide customisations such as Button component styles. It can be used as follows:

<div>
    <CentraPassProvider theme={{
        primaryColor: "blue"
    }}>
        <LiveSelfie height={300} onComplete={(value)=>console.log(value)}/>
    </CentraPassProvider>
</div>

Examples

Examples are in the examples folder and can be used as a starting point for your use of the library

/@centrapass/component-library/

    Package Sidebar

    Install

    npm i @centrapass/component-library

    Weekly Downloads

    4

    Version

    0.2.16

    License

    none

    Unpacked Size

    3.98 MB

    Total Files

    23

    Last publish

    Collaborators

    • kiwimcherri
    • developer-centrapass