0.1.5 • Published 10 months ago

poe-item-hover v0.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

npm version

Path of Exile Item Hover

This repo uses poe-itemtext-parser under the hood to generate the properties needed to display the items.

Install

Install with your favorite package manager:

npm install poe-item-hover --save

Usage

!IMPORTANT Make sure to NOT do CTRL - Alt - C as the item parser will not work.

const exampleItem = `CTRL-C item from in-game`;

import 'poe-item-hover/dist/index.css';
import { ItemHover } from 'poe-item-hover';

function MyFancyItem() {
    const [hovered, setHovered] = useState(false);

    return (
        <div 
            onMouseEnter={() => setHovered(true)}
            onMouseLeave={() => setHovered(false)}>
        {hovered && <ItemHover itemData={exampleItem} />}
        </div>
    )
}

Example

This is an example of how the item hover will look like in practice

Item hover in action

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.1

10 months ago