Observed since 20 Oct, 19:32 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A lightweight React component for displaying products in both Augmented Reality (AR) and 3D. Perfect for eCommerce applications where you want to showcase your products in an immersive and interactive way.
A lightweight React component for displaying products in both Augmented Reality (AR) and 3D. Perfect for eCommerce applications where you want to showcase your products in an immersive and interactive way.
You can install the package via npm or yarn:
npm install 3d-ar-product-card
import { AR3DProductCard } from '3d-ar-product-card';
import React from 'react';
import { AR3DProductCard } from '3d-ar-product-card';
function App() {
return (
<div>
<AR3DProductCard
gltfPath="/models/indoor_plant/scene.gltf"
imageSrc="/image/1.png"
/>
</div>
);
}
export default App;
gltfPath (string): The path to the 3D model file (GLTF format).
imageSrc (string): The image to display on the product card.
Make this src/components folder name as Arcomponent.jsx
import { XrHitModelContainer } from '3d-ar-product-card';
import { useLocation } from 'react-router-dom';
import { XrHitModelContainer } from '3d-ar-product-card';
const Arcomponent = () => {
const location = useLocation();
const params = new URLSearchParams(location.search);
const gltfPath = params.get('gltfPath') || './models/default.gltf';
console.log(gltfPath);
console.log("gltfPath:", gltfPath); // Log the gltfPath for debugging
return (
<>
{gltfPath ? (
<XrHitModelContainer gltfPath={gltfPath} />
) : (
<p>Error: No valid GLTF path provided.</p>
)}
</>
);
};
export default Arcomponent;
Make route 'xr' of this component
Example
import Arcomponent from "./components/Arcomponent";
const App = () => {
return(
<Routes>
<Route path="/xr" element={<Arcomponent />} />
</Routes>
)};
export default App;
MIT License.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 3.4.27Registry latest | 12 Feb 2025 | 19 | |
| 3.4.26 | 12 Feb 2025 | 19 | |
| 3.4.25 | 12 Feb 2025 | 19 | |
| 3.4.24 | 11 Feb 2025 | 19 | |
| 3.4.23 | 11 Feb 2025 | 19 | |
| 3.4.22 | 11 Feb 2025 | 19 | |
| 3.4.21 | 11 Feb 2025 | 19 | |
| 3.4.20 | 11 Feb 2025 | 19 | |
| 3.4.19 | 11 Feb 2025 | 19 | |
| 3.4.18 | 11 Feb 2025 | 19 | |
| 3.4.17 | 11 Feb 2025 | 19 | |
| 3.4.16 | 11 Feb 2025 | 19 | |
| 3.4.15 | 11 Feb 2025 | 19 | |
| 3.4.14 | 11 Feb 2025 | 19 | |
| 3.4.13 | 11 Feb 2025 | 19 | |
| 3.4.12 | 27 Jan 2025 | 19 | |
| 3.4.11 | 27 Jan 2025 | 19 | |
| 3.4.10 | 27 Jan 2025 | 19 | |
| 3.4.9 | 27 Jan 2025 | 19 | |
| 3.4.8 | 27 Jan 2025 | 19 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:32 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e91e77c5d7360b78536a7b4a99099bdc5582a17a73de2288067b1a3c12e54162