https://github.com/just-boris/kinda-ui-lib
an example how to organize ui library
https://github.com/just-boris/kinda-ui-lib
css-modules example rollup
Last synced: 10 months ago
JSON representation
an example how to organize ui library
- Host: GitHub
- URL: https://github.com/just-boris/kinda-ui-lib
- Owner: just-boris
- Created: 2016-12-18T18:31:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-18T19:47:00.000Z (about 9 years ago)
- Last Synced: 2025-02-15T23:29:04.395Z (11 months ago)
- Topics: css-modules, example, rollup
- Language: JavaScript
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kinda-ui-lib
This is an example how to organize ui library. Technology stack
* React
* Rollup
* CSS-modules
## Usage
Install directly from Github
```
npm install https://github.com/just-boris/kinda-ui-lib.git
```
Import components into your project
```
// bundled component with styles
import Button 'kinda-ui-lib/lib/button/index.js';
// just component without styles
import Button 'kinda-ui-lib/lib/button/button.js';
```
## Project structure
* Components folder contains source code for components
* Lib foleder contains resulting bundles that you may import into your app.