Skip to content

dev-drprasad/react-keypress

Repository files navigation

react-keypress

API

Keypress

component

prop description type
shortcut string
desc string
onShortcut function
example
<KeyPress
  shortcut="shift a"
  desc="toggle color of A"
  onShortcut={this.toggleColor}
/>
withActiveShortcuts

high order component

example
export default withActiveShortcuts(Help);
KeyPressProvider

component

<KeyPressProvider>
  <div className="App"></div>
</KeyPressProvider>

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published