Nightingale Posing Mischievously

    @jouwomgeving/ui-events

    2.0.3 • Public • Published

    Events

    $ npm install @jouwomgeving/ui-events
    

    Point

    Usage

    import React from 'react';
    import * as Events from '@jouwomgeving/ui-events';
    
    function Layout() {
      return (
        <div>
          <Events.Container onPoint={() => alert('Click')}>
            Triggered on click
          </Events.Container>
          <Events.Container onHover={() => alert('Hover')}>
            Triggered on hover
          </Events.Container>
        </div>
      )
    }
    
    export default Layout;

    About

    A Component which normalizes the pointer events in multiple browsers. Also it exposes a onHover callback which will not work on touch screens.

    Properties

    Props Values Default Required
    onHover Function No
    onPoint Function No

    Keywords

    none

    Install

    npm i @jouwomgeving/ui-events

    DownloadsWeekly Downloads

    59

    Version

    2.0.3

    License

    UNLICENSED

    Unpacked Size

    33.8 kB

    Total Files

    15

    Last publish

    Collaborators

    • gaaltink.avinty
    • marcelblijleven_avinty
    • ivanhulzen
    • dkainama
    • rvanleeuwen
    • heesink
    • hellobramkok
    • dbunskoek