ruilisi / react-keycode-input

A cool component for inputing many kinds of code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-keycode-input is a cool react component for inputing many kinds of codes

Installation

npm install --save react-keycode-input

Usage

import KeycodeInput from 'react-keycode-input'

class Demo extends React.Component {
  render () {
    return <KeycodeInput />
  }
}

You can also use the modal version of this component by

import KeycodeInputModal from 'react-keycode-input/modal'

It utilizes ant design Modal component, so be sure you have antd installed

Example

An example is provided in example

About

A cool component for inputing many kinds of code

License:GNU General Public License v3.0


Languages

Language:JavaScript 96.1%Language:HTML 3.9%