Musical keyboard component written in React.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

README.md 614 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Musical Keyboard
  2. Musical keyboard component written in React.
  3. ## Installation
  4. ```shell script
  5. yarn add @theoryofnekomata/react-musical-keyboard
  6. ```
  7. ## Usage
  8. ```jsx harmony
  9. import * as React from 'react'
  10. import ReactDOM from 'react-dom'
  11. import Keyboard from '@theoryofnekomata/react-musical-keyboard'
  12. const App = () => {
  13. return (
  14. <div>
  15. <Keyboard startKey={21} endKey={108}/>
  16. </div>
  17. )
  18. }
  19. const container = window.document.createElement('div')
  20. ReactDOM.render(<App />, container)
  21. window.document.body.appendChild(container)
  22. ```
  23. ## License
  24. MIT. See [License file](./LICENSE) for details.