fingerboard
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Fingerboard

A simple guitar fingerboard component used to prompt fingering.

📦 Install

$ yarn add fingerboard

🔨 Usage

// import fingerboard component and stylesheet
import Fingerboard from 'fingerboard'
import 'fingerboard/dist/index.min.css'

const App = () => (
  <>
    <Fingerboard data={[ {string: 1, fret: 1} ]} />
  </>
)

📖 API

Property Description Type Default
data data record to be displayed point | point[]
(point: {'string': number, 'fret': number})
[]
className container class name string ''
fretMark if fret show mark number 'default' | 'all' | null 'default'
fretWidth width of fret number 72

⌨️ Development

$ git clone https://github.com/z7w7/fingerboard.git
$ cd fingerboard
$ yarn
$ yarn link & yarn dev

$ yarn link fingerboard # in another project

Package Sidebar

Install

npm i fingerboard

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

28.6 kB

Total Files

9

Last publish

Collaborators

  • z7w7