English | [简体中文](./README-zh_CN.md)

# @ray-js/doublekey

> DoubleKey

## Installation

```sh
$ npm install @ray-js/doublekey
# or
$ yarn add @ray-js/doublekey
```

## Usage

```tsx
import DoubleKey from '@ray-js/doublekey';

<DoubleKey
  status={[true, true]}
  tip="volume"
  text={['top', 'bottom']}
  onPress={[
    () => {
      console.log('click top');
    },
    () => {
      console.log('click bottom');
    },
  ]}
  onLongPress={[
    () => {
      console.log('longClick top');
    },
    () => {
      console.log('longClick bottom');
    },
  ]}
/>

<DoubleKey
  status={[true, true]}
  tip="text"
  img={[Res.add, Res.minus]}
  type="horizontal"
  width={200}
/>

```