aptos-plixylus-game
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Plixylus Game Package

This package enables the integration of the Plixylus game into any React application, making it easy to showcase the game.

Usage

Installation

npm i aptos-plixylus-game

Component

import React from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { PlixylusGame } from "aptos-plixylus-game";

function Plixylus() {
  const { account, signAndSubmitTransaction } = useWallet();

  const setConnectModalOpen = async (isOpen) => {
    console.log(isOpen);
  };
  return (
    <PlixylusGame
      signAndSubmitTransaction={signAndSubmitTransaction}
      setConnectModalOpen={setConnectModalOpen}
      accountAddress={account?.address?.toString()}
    />
  );
}

export default Plixylus;

Package Sidebar

Install

npm i aptos-plixylus-game

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

8.67 kB

Total Files

8

Last publish

Collaborators

  • ex2team