1.3.0 • Published 7 years ago

react-pinout v1.3.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

react-pinout npm package

RaspberryPi pinout React component

Heavily inspired from pinout.xyz

demo

Demo

Usage

import { RaspberryPi } from 'react-pinout'

const RaspberryPi = <RaspberryPi pins={ pins } onClick={ pin => redirect(pin.href) } />

pins is an array composed of 40 items :

{
  "physicalPort": 1,
  "href": "/pinout/pin1_3v3_power",
  "title": "",
  "details": "",
  "label": "3v3 Power",
  "shape": "square",
  "color": "#B58900"
}