@levita-js/react 0.1.1 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/package.json +8 -4
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @levita-js/react
|
|
2
|
+
|
|
3
|
+
> React wrapper for Levita — Lightweight 3D tilt & parallax with accelerometer support.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install levita-js @levita-js/react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Tilt } from "@levita-js/react";
|
|
15
|
+
import "levita-js/style.css";
|
|
16
|
+
|
|
17
|
+
function MyCard() {
|
|
18
|
+
return (
|
|
19
|
+
<Tilt glare shadow max={20}>
|
|
20
|
+
<div className="card-content">
|
|
21
|
+
<h1>Tilt Me!</h1>
|
|
22
|
+
</div>
|
|
23
|
+
</Tilt>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Documentation
|
|
29
|
+
|
|
30
|
+
Full options and advanced usage documentation can be found at the [main Levita repository](https://github.com/jeromearsene/levita#readme).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levita-js/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "React wrapper for Levita 3D tilt & parallax",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -21,13 +21,17 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"provenance": true
|
|
27
|
+
},
|
|
24
28
|
"sideEffects": false,
|
|
25
29
|
"peerDependencies": {
|
|
26
30
|
"react": ">=18",
|
|
27
31
|
"react-dom": ">=18"
|
|
28
32
|
},
|
|
29
33
|
"dependencies": {
|
|
30
|
-
"levita-js": "0.1.
|
|
34
|
+
"levita-js": "0.1.4"
|
|
31
35
|
},
|
|
32
36
|
"devDependencies": {
|
|
33
37
|
"@testing-library/react": "^16.3.2",
|
|
@@ -40,10 +44,10 @@
|
|
|
40
44
|
"license": "MIT",
|
|
41
45
|
"repository": {
|
|
42
46
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/
|
|
47
|
+
"url": "https://github.com/Jeromearsene/levita.git",
|
|
44
48
|
"directory": "packages/react"
|
|
45
49
|
},
|
|
46
|
-
"homepage": "https://github.com/
|
|
50
|
+
"homepage": "https://github.com/Jeromearsene/levita#readme",
|
|
47
51
|
"scripts": {
|
|
48
52
|
"build": "tsdown"
|
|
49
53
|
}
|