@wager-dev/wagerbase
v1.0.12
Published
Wager component library
Downloads
5
Readme
WAGERBASE
Wagerbase is a React component library, to support the Wager React-Native app. This library is built on Storybook.
Important: Package has been published to NPM. For simplicity sake, after code review - I (david) will deploy the latest package (for now). 👍
Installation
Use npm to install.
npm install
...and storybook to develop.
# Starts Storybook in development mode
npm run storybook
Usage (WIP)
import { Balance } from '@wager-dev/wagerbase'
Component List
(Please add components here as you develop them)
- Balance ( tokenAmount ) : takes the token amount adds "k" if over 1000.
- Icon ( type ) : icon type is denoted by a simple string "NFL", "NBA", etc.
- Spread ( spread ) : takes a spread object containing the spread valye as an int and positive as a boolean.