Skip to content

GeneeUI is a React based component library, providing everyday use components for building web applications.

License

Notifications You must be signed in to change notification settings

geneecode/geneeui

Repository files navigation

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

About

GeneeUI is a React based component library, providing everyday use components for building web applications.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published