Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-pointer-type

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pointer-type - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",

@@ -4,0 +4,0 @@ "description": "React hooks for adapting to pointer type changes. The correct alternative to feature detection.",

@@ -11,2 +11,26 @@ # React Pointer Type

```css
/* App.module.css */
:global(.mouse) .pointerIndicator {
background: red;
}
:global(.touch) .pointerIndicator {
background: blue;
}
:global(.pen) .pointerIndicator {
background: green;
}
.matchIndicator {
background: red;
}
:global(.nohover) .matchIndicator {
background: green;
}
```
```tsx

@@ -13,0 +37,0 @@ import React from 'react';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc