Skip to content

a7md3bdelfatta7/loreuikit

Repository files navigation

This is React package for shared component library based on Ionic and Material Design concepts!

How to use this package

install the package

npm i lore-uikit --save

import component

import {Button} from "lore-uikit";

then use the component

 <Button
    onClick={() => {
    //do anything
    }}
    label="Toggle Theme"
/>

How to run it locally

after cloning this repo you have to run the following commands

install Dependencies

npm install

Build the library

npm run build

Publish the library

npm publish

Run storybook locally

npm run storybook

Build storybook

npm run build-storybook

Library folder structure

├── src
│   ├── components
|   │   ├── Button
|   |   │   ├── Button.tsx
|   |   │   └── index.ts
|   │   └── index.ts
│   ├── Shared
|   │   ├── enums
|   │   ├── styles
│   └── index.ts
├── package.json
└── package-lock.json