Build specifications
Built using node 21.6.0
Built using npm 10.2.4
Pixorize Quetzalcoatl React
A React wrapper component for the @pixorize/pixorize-quetzalcoatl library.
Instalation
npm install @pixorize/pixorize-quetzalcoatl-react
or
yarn add @pixorize/pixorize-quetzalcoatl-react
Usage
import React from 'react';
import PixorizeQuetzalcoatlReact from '@pixorize/pixorize-quetzalcoatl-react';
const data = '../path/to/data';
const imageUrl = 'https://via.placeholder.com/1280x720';
const InteractiveImage = () => {
render(
<div className="my-class-name">
<PixorizeQuetzalcoatlReact
data={data}
imageUrl={imageUrl}
/>
</<div>
);
};
export default InteractiveImage;
Documentation
Props
data
: JSON
The interactive image JSON data. See
@pixorize/pixorize-quetzalcoatl
docs for more details.
imageUrl
: string
The image URL.
License
- MIT license
- Copyright 2020 © Pixorize Inc.