shortkit

1.0.7 • Public • Published


NPM JavaScript Style Guide

Install

npm i shortkit

Usage

import React from 'react'
import { useShortcut, ShortkitProvider } from 'shortkit'

const MyComponent = () => {
  useShortcut('c', () => {
    // Create a new document
  }, { triggerInInputs: false })

  return someGubbins
}

const App = () => {
  return (
    <ShortkitProvider>
      <MyComponent />
    </ShortkitProvider>
  )
}

For more advanced usage, and to learn why Shortkit offers so much more awesomeness than similar libraries, check out the docs.


by Adam Soutar

⌨️ + ⚡️ = 😍

Package Sidebar

Install

npm i shortkit

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

32.7 kB

Total Files

6

Last publish

Collaborators

  • deebo