/poe-custom-elements

Path of Exile custom elements

Primary LanguageTypeScriptMIT LicenseMIT

poe-custom-elements

Path of Exile custom elements

npm install poe-custom-elements

Usage

Here is an example with a stash tab

First, you need to open node_modules/poe-custom-elements and copy

  • poe-images folder
  • fontin.woff
  • divination-card folder to your public files. (public folder for vite)
import 'poe-custom-elements/stash-tab.js';
/* 
 JS object of stash tab from Poe API
 https://www.pathofexile.com/developer/docs/reference#stashes-get
 Check TabWithItems, PoeItem .d.ts types file
(Keep in mind, that exact json importing is a Vite feature, not a real JS) 
*/
import quad from './QuadStashStd.json';

const el = document.createElement('poe-stash-tab');
el.tab = quad;
document.body.append(el);

Check JS Example