@liquid-glass-forge/react 0.1.0-rc.1 → 0.1.0-rc.2
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 +42 -5
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,8 +1,45 @@
|
|
|
1
|
-
#
|
|
1
|
+
# <img src="https://raw.githubusercontent.com/namipsg/liquid-glass-forge/main/showcase/public/frameworks/react.svg" width="20" height="20" alt=""> @liquid-glass-forge/react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Integrate Forge scenes and glass surfaces into React.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Live showcase](https://namipsg.github.io/liquid-glass-forge/?framework=react#developers) · [Examples](https://namipsg.github.io/liquid-glass-forge/examples.html) · [Documentation](https://github.com/namipsg/liquid-glass-forge/blob/main/docs/PHASE-7.md) · [Support](https://namipsg.github.io/liquid-glass-forge/support.html)
|
|
6
|
+
|
|
7
|
+
## Install in React
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @liquid-glass-forge/react@next @liquid-glass-forge/dom@next
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The starter uses CSS glass and expects React and React DOM 19.3.1. Keep the Forge packages at matching versions.
|
|
14
|
+
The [live installer](https://namipsg.github.io/liquid-glass-forge/?framework=react#developers)
|
|
15
|
+
shows verified exact versions and has a copy button.
|
|
16
|
+
|
|
17
|
+
[Open the React starter](https://github.com/namipsg/liquid-glass-forge/blob/main/docs/QUICKSTART.md#react) · [Add WebGL refraction](https://github.com/namipsg/liquid-glass-forge/blob/main/docs/QUICKSTART.md#react-with-webgl-refraction)
|
|
18
|
+
|
|
19
|
+
### App.jsx
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
'use client';
|
|
23
|
+
|
|
24
|
+
import { GlassSurface } from '@liquid-glass-forge/react';
|
|
25
|
+
import '@liquid-glass-forge/dom/styles.css';
|
|
26
|
+
|
|
27
|
+
export default function App() {
|
|
28
|
+
return (
|
|
29
|
+
<main style={{ padding: 48, background: 'linear-gradient(130deg, #bde7ff, #8495ea)' }}>
|
|
30
|
+
<GlassSurface style={{ display: 'inline-block', padding: 16, borderRadius: 24 }}>
|
|
31
|
+
<button type="button">Continue</button>
|
|
32
|
+
</GlassSurface>
|
|
33
|
+
</main>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[](https://namipsg.github.io/liquid-glass-forge/?framework=react#developers)
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
Experimental preview `0.1.0-rc.2`. Pinned peers: React and React DOM **19.3.1**.
|
|
6
43
|
Framework peers are imported, never bundled into this package. The ESM entry
|
|
7
44
|
retains `use client` for Next.js client boundaries and has public JSX declarations.
|
|
8
45
|
|
|
@@ -25,5 +62,5 @@ material data attribute, `aria-hidden`, presentation role and negative tab index
|
|
|
25
62
|
React owns both DOM nodes. Do not concurrently control canvas backing dimensions
|
|
26
63
|
or draw into its context while mounted.
|
|
27
64
|
|
|
28
|
-
See
|
|
29
|
-
consumer evidence and remaining integration limits.
|
|
65
|
+
See the [integration guide](https://github.com/namipsg/liquid-glass-forge/blob/main/docs/PHASE-7.md) for usage, Strict Mode ownership, exact Vite/Next
|
|
66
|
+
consumer evidence and remaining integration limits.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liquid-glass-forge/react",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,12 +22,13 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@liquid-glass-forge/dom": "0.1.0-rc.
|
|
25
|
+
"@liquid-glass-forge/dom": "0.1.0-rc.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "19.3.1",
|
|
29
29
|
"react-dom": "19.3.1"
|
|
30
30
|
},
|
|
31
|
+
"homepage": "https://namipsg.github.io/liquid-glass-forge/?framework=react#developers",
|
|
31
32
|
"repository": {
|
|
32
33
|
"type": "git",
|
|
33
34
|
"url": "git+https://github.com/namipsg/liquid-glass-forge.git",
|