MissionLocation
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.
Location indicator. Global missions show the gamification planet icon; country missions show a flag icon plus the country name.
Playground
Live preview
Examples
Locations
Custom colors
Code
import { MissionLocation } from "@npolyhunter/ui";
// Global (default) — gamification planet icon + "Global"
<MissionLocation />
// Country — flag icon + country name
<MissionLocation country="Spain" />
<MissionLocation country="Colombia" />
// Parametrized: flag icon colors + text color
<MissionLocation
country="Japan"
flagPrimaryColor="#EF6461"
flagSecondaryColor="#1A2626"
className="text-foreground-default"
/>
// Disabled
<MissionLocation country="Spain" disabled />;Code
import { MissionLocation } from "@npolyhunter/ui";
// Global (default) — gamification planet icon + "Global"
<MissionLocation />
// Country — flag icon + country name
<MissionLocation country="Spain" />
<MissionLocation country="Colombia" />
// Parametrized: flag icon colors + text color
<MissionLocation
country="Japan"
flagPrimaryColor="#EF6461"
flagSecondaryColor="#1A2626"
className="text-foreground-default"
/>
// Disabled
<MissionLocation country="Spain" disabled />;Used in
Includes use through shared UI components.
App
