@navelpluisje/pcb-components
Version:
A library with native components. They are all pcb components, like a dip-switch, resitor etc.
63 lines (39 loc) • 1.93 kB
Markdown
# PCB Components
[](https://www.npmjs.com/package/@navelpluisje/pcb-components)
[](https://www.npmjs.com/package/@navelpluisje/pcb-components)
[](https://www.npmjs.com/package/@navelpluisje/pcb-components)
[](https://www.npmjs.com/package/@navelpluisje/pcb-components)
[](https://navelpluisje.nl)
## About
This is a small library with PCB related components. They all act like input fields. All components were writen as native web components and then bundled with webpack.
## Usage
### install
```
npm i -S @navelpluisje/pcb-components
```
### ES6 import
### Javascript
```javascript
import { resistor } from '@navelpluisje/pcb-components/src';
resistor();
```
### HTML
```html
<np-resistor value="47k"></np-resistor>
```
### Electron application
### Javascript
```javascript
const { resistor } = require('@navelpluisje/pcb-components/dist/umd');
resistor();
```
### HTML
```html
<np-resistor value="47k"></np-resistor>
```
Check the [documentation](./documentation/documentation.md)
## Issues
If you found a bug, room for improvement or whatever, you can [create an issue](https://bitbucket.org/Navelpluisje/pcb-components/issues?status=new&status=open) here.
Please check first if your issue already hes been reported.
## Requests
If you have any idea for more usefull component (needs to be in pcb style) you can [create an issue](https://bitbucket.org/Navelpluisje/pcb-components/issues/new) with a request.