Version: 1.2.0
Getting Started
K2 Library is a dashboarding solution thats aims to allow users to create new dashboards within an hour or less. K2 is built on the principles of Reusability and Don't repeat yourself.
Our Manifesto
- Solve the problem once and reuse it everywhere.
- Reduce the time to start by leveraging sane defaults and minimal required inputs.
- Quality code, which is battle-tested, robust and predictable.
- Minimize maintenance effort required over time.
Installation
You can install the library using npm
or yarn
package manager using the following way:
- Create
.npmrc
in your project root and add following line in it:
- yarn
- npm
- Run
yarn add
command for the sub-package you need:
- Run
npm install
command for the sub-package you need:
important
styled-components
is peer dependency of K2. Please install it before using K2.
Usage
- Wrap your application/component with
ThemeProvider
.
important
Wrapping of your application or component with ThemeProvider
is required to utilize full features of K2 components.
- Use the K2 component.
Quick Start
Here's a quick example to get you started, it's all you need:
Live Editor
For more usage examples, kindly see StoryBook.
For more information please reach us at: k2@emumba.com