Musical keyboard component written in React.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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.