1.0.7 • Published 3 years ago

shortkit v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.


1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago