PolyHunter

RoleSwitcher

Hunter/Guild segmented switch on the ToggleGroup chrome role variant. The target icon lights up #FF925A when Hunter is active, the crown #A8B7FF for Guild; both are #8B909C when inactive. Hover or focus each label for a short explanation of its view. Used by GlobalTopnav.

Playground

Live preview

Hunter view tooltip (hover or focus Hunter)

Examples

Guild view tooltip (hover or focus Guild)

Selected role: guild

<RoleSwitcher role={role} onRoleChange={setRole} />

Usage

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

// Uncontrolled — starts on Hunter
<RoleSwitcher />

// Controlled
const [role, setRole] = useState<Role>("guild");
<RoleSwitcher role={role} onRoleChange={setRole} />

Used in

Includes use through shared UI components.

App