3.0.1 • Published 1 year ago

@jouwomgeving/ui-events v3.0.1

Weekly downloads
1
License
UNLICENSED
Repository
bitbucket
Last release
1 year ago

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

PropsValuesDefaultRequired
onHoverFunctionNo
onPointFunctionNo
3.0.1

1 year ago

3.0.0

1 year ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

1.2.5

5 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.3-beta

9 years ago