Skip to content
R

react-tappable

Touch / Tappable Event Handling Component for React

by dcousensFree

#1120in UI Libraries
0In stores

Description

react-tappable is a React component that handles touch, tap and press events so that buttons behave like native controls. By default it rend…

Highlights

  • onTap, onPress and pinch events
  • Active and inactive classes for pressed styling
  • Cancels taps when the user scrolls
  • Falls back to mouse and keyboard events
  • Install from npm, lighter builds available

Ratings & Reviews

No ratings yet

Be the first to rate react-tappable.

People also visit

R

react-tapper

Tappable and Swipeable component for React

UI Libraries
Launch
R

react-hammerjs

ReactJS / HammerJS integration. Support touch events in your React app

UI Libraries
Launch
R

rc-hammerjs

ReactJS / HammerJS integration. Support touch events in your React app

UI Libraries
Launch
R

react-switch

Draggable toggle-switch component for react

UI Libraries
Launch
R

react-swipeable-views

A React Component for binded Tabs and Swipeable Views

UI Libraries
Launch
R

rc-swipeout

swipe out ui component for react(web and react-native)

UI Libraries
Launch

react-tappable FAQ

What is react-tappable?

A React component that handles touch, tap and press events so that buttons behave like native controls.

How do I install it?

Install it from npm. The README also explains a standalone build for pages that already include React globally.

Does it work with a mouse and keyboard?

Yes. It falls back to mouse events when touch is not supported, and it emulates native keyboard button behavior.

How do I style the pressed state?

The component adds -active or -inactive to its base class, so you can style the pressed state in CSS.

How do I turn off default touch handling?

Set the preventDefault prop to disable default event handling such as scrolling.

What are the best react-tappable alternatives?

Popular alternatives to react-tappable include react-tapper, react-hammerjs and rc-hammerjs. See all react-tappable alternatives

Developer Stuff

Badges