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.
 
 
 
 

29 rivejä
583 B

  1. import * as React from 'react'
  2. const NaturalKey: React.FC = () => (
  3. <div
  4. style={{
  5. width: '100%',
  6. height: '100%',
  7. backgroundColor: 'var(--color-natural-key, white)',
  8. border: '1px solid',
  9. boxSizing: 'border-box',
  10. position: 'relative',
  11. }}
  12. >
  13. <div
  14. style={{
  15. width: '100%',
  16. height: '100%',
  17. position: 'absolute',
  18. top: 0,
  19. left: 0,
  20. opacity: 'var(--opacity-highlight)',
  21. backgroundColor: `var(--color-active-key, Highlight)`,
  22. }}
  23. />
  24. </div>
  25. )
  26. export default NaturalKey