@pixorize/pixorize-quetzalcoatl-react

1.1.2 • Public • Published

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

License: MIT

Package Sidebar

Install

npm i @pixorize/pixorize-quetzalcoatl-react

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

957 kB

Total Files

28

Last publish

Collaborators

  • pixorize-david