0.2.37 • Published 3 years ago

@flrfinance/ff-react-library v0.2.37

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

Flare React Library

A library containing common reusable components for flare finance products.

Initial Setup

In order to use one of the npm dependencies of the flrfinance organisation you will npmjs Access Token. If you need a access token, request it from one of your coworkers. You will need to setup the token as a variable inside your terminal. The variable name shall be NPM_TOKEN. You can do so by running the following command inside your terminal:

export NPM_TOKEN=your_npm_token

Besides the variable you will need to setup an .nmprc file for your project. Don't forget to remove the file from the .gitignore file. The .npmrc file should look as following:

@flrfinance:registry=https://registry.npmjs.org
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

To summarise:

  • set NPM_TOKEN variable
  • create an .npmrc file

Use as dependency

Run the following in terminal:

npm i @flrfinance/ff-react-library

or add in your package.json the following:

"@flrfinance/ff-react-library": "desired.version.tag",

and run:

npm i

Usage

import React, { Component } from "react";

import { MyComponent } from "flare-lib";

class Example extends Component {
  render() {
    return <MyComponent />;
  }
}

Themes

The library is using a default theme.json that can be copied and replaced.

The input theme.json (if has correct structure) will replace the default one. If value is not provided then the theme will fallback to default one

Development (Storybook)

Project has integrated storybook for showcasing the components. In order to develop live a component just run:

  • npm run storbook or
  • yarn storybook Making changes on the components will appear immediately in the page mentioned above

License

MIT © Flare Finance

0.2.37

3 years ago

0.2.36

3 years ago

0.2.35

3 years ago

0.2.34

3 years ago

0.2.33

3 years ago

0.2.30

3 years ago

0.2.32

3 years ago

0.2.31

3 years ago

0.2.29

3 years ago

0.2.27

3 years ago

0.2.26

3 years ago

0.2.25

3 years ago

0.2.24

3 years ago

0.2.23

3 years ago

0.2.22

3 years ago

0.2.28

3 years ago

0.2.21

3 years ago

0.2.20

3 years ago

0.2.19

3 years ago

0.2.18

3 years ago

0.2.17

3 years ago

0.2.16

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago