PolyHunter

MissionPoly

The default display is static. Clickable variants use hover decoration on a fine pointer at widths of 768px or more.

POLY amount indicator: brand icon plus the amount in the guild accent color. The unit defaults to "POLY" and is configurable.

Playground

Live preview

Examples

Values

Units and colors

Clickable

clickable adds a pointer cursor and marks the root withdata-clickable; passonClick to handle the press. Disabled stays inert.

Code

import { MissionPoly } from "@npolyhunter/ui";

// value: renders the amount with thousands separators + "POLY"
<MissionPoly value={150} />        // 150 POLY
<MissionPoly value={12840} />      // 12,840 POLY

// Custom unit, or hide it
<MissionPoly value={500} unit="PLY" />
<MissionPoly value={500} unit="" />

// Custom text color + disabled
<MissionPoly value={75} className="text-foreground-default" />
<MissionPoly value={75} disabled />;
<MissionPoly value={100} mobileIconOnly />;

Code

import { MissionPoly } from "@npolyhunter/ui";

// value: renders the amount with thousands separators + "POLY"
<MissionPoly value={150} />        // 150 POLY
<MissionPoly value={12840} />      // 12,840 POLY

// Custom unit, or hide it
<MissionPoly value={500} unit="PLY" />
<MissionPoly value={500} unit="" />

// Custom text color + disabled
<MissionPoly value={75} className="text-foreground-default" />
<MissionPoly value={75} disabled />;
<MissionPoly value={100} mobileIconOnly />;

Used in

Includes use through shared UI components.

App