Skip to content

Commit

Permalink
fix: make @use-gesture/vanilla optional dependency (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
eneajaho authored Apr 25, 2024
1 parent b8f7e1f commit 7291426
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/content/docs/utilities/Gesture/gesture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';

## Usage

First you need to install the package

```bash
npm i @use-gesture/vanilla
```

There are various ways we can utilize the Gesture from `ngxtension/gestures`

The examples show using `NgxDrag`, for `DragGesture`, but they can apply to other gestures as well.
Expand Down
5 changes: 5 additions & 0 deletions libs/ngxtension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"@use-gesture/vanilla": "^10.0.0",
"rxjs": "^6.0.0 || ^7.0.0"
},
"peerDependenciesMeta": {
"@use-gesture/vanilla": {
"optional": true
}
},
"dependencies": {
"@nx/devkit": "^17.0.0",
"nx": "^17.0.0",
Expand Down

0 comments on commit 7291426

Please sign in to comment.