@geneecode/geneeui
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

GeneeUI

Build Test Coverage NPM Dependencies Dev Dependencies Storybook Liscense Stars Issues Forks

GeneeUI

This is a React based implementation of Component Library. This project is actively being developed, so expect changes/additions. The basic usage is outlined below.

Checkout Storybook at

Goto GeneeUI

Usage

First install the library

npm i @geneecode/geneeui 

To add the styling you need to add the provided css file. How to import this varies based on your build pipeline. As an example for a simple CRA app, you would do the following:

import '@geneecode/geneeui/dist/geneeui.min.css';

After this you can import and use the components. The recommended way is to include individual components from the lib folder to reduce bundle size and allow for tree-shaking. If your pipeline allows import esnext or esm modules then see the example after this.

import React from 'react';
import Button from '@geneecode/geneeui/lib/Button';

const App: React.FC = () => {
  return (
    <div>
      <Button>Button</Button>
    </div>
  );
}

export default App;

We also provide esm and esnext builds in lib/esm and lib/es folders respectively. You may use these if your pipeline allows.

import Button from '@geneecode/geneeui/lib/esm/Button';
// or
import Button from '@geneecode/geneeui/lib/es/Button';

Development

# Build
npm run build

# Test
npm run test
npm run test:watch

# Storybook
npm run storybook

Package Sidebar

Install

npm i @geneecode/geneeui

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

2.23 MB

Total Files

739

Last publish

Collaborators

  • geneecode
  • muhammad.zeeshan
  • zunaib.imtiaz