revolunet / react-pinout

RaspberryPi pinout React component

Home Page:https://revolunet.github.io/react-pinout/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"
}

About

RaspberryPi pinout React component

https://revolunet.github.io/react-pinout/


Languages

Language:JavaScript 62.8%Language:CSS 29.6%Language:HTML 7.6%