omi-tap

2.0.2 • Public • Published

## omi-tap

Support tap event in your Omi project.


Install

npm install omi-tap

Usage

import { render, WeElement, tag } from "omi"
import "omi-tap"
 
@tag("my-app")
class MyApp extends WeElement {
  onTap = () => {
    console.log('tap')
  }
 
  render() {
    return (
      <omi-tap onTap={this.onTap} >
        <div>Tap Me!</div>
      </omi-tap>
    )
  }
}
 
render(<my-app />, "body");

License

This content is released under the MIT License.

/omi-tap/

    Package Sidebar

    Install

    npm i omi-tap

    Weekly Downloads

    6

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    1.84 kB

    Total Files

    3

    Last publish

    Collaborators

    • dntzhang