PolyHunter

MissionExperience

Hover decoration requires a fine pointer and hover support at widths of 768px or more. Phone and touch controls keep tap actions and keyboard focus without rollover effects.

Experience indicator: bolt icon plus the amount in the XP accent color. The unit defaults to "XP" 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 { MissionExperience } from "@npolyhunter/ui";

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

// Custom unit, or hide it
<MissionExperience value={500} unit="EXP" />
<MissionExperience value={500} unit="" />

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

Code

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

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

// Custom unit, or hide it
<MissionExperience value={500} unit="EXP" />
<MissionExperience value={500} unit="" />

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

Used in

Includes use through shared UI components.

App