PolyHunter

IconButton

Square, background-free icon buttons. No borders, no surfaces — only the icon color changes per variant and on hover. Sizes are compact (20px), small (24px) and medium (32px). All colors come from tokens in @npolyhunter/ds/theme.css.

Playground

Live preview

Examples

Variants × Sizes

variant="default"
variant="subtle"
variant="guild"
variant="destructive"
variant="hunter"

All variants

Loading & disabled

Loading swaps the icon for the same RefreshBoldDuotoneIcon spinner used by Button, inheriting the current text color.

In context

Code

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

// Default — muted icon (#C4C7CF) that brightens to #F1F2F5 on hover
<IconButton aria-label="Search">
  <Search />
</IconButton>

// Subtle — bright icon that dims on hover
<IconButton variant="subtle" size="small" aria-label="Settings">
  <Settings />
</IconButton>

// Sizes: compact (20px), small (24px), medium (32px)
<IconButton size="compact" aria-label="Close">
  <X />
</IconButton>

// Guild / destructive / hunter — semantic text colors only
<IconButton variant="guild" aria-label="Favorite">
  <Heart />
</IconButton>
<IconButton variant="destructive" aria-label="Delete">
  <Trash />
</IconButton>

// Loading swaps the icon for a spinner
<IconButton loading aria-label="Loading">
  <Bell />
</IconButton>

Used in

Includes use through shared UI components.

AppBack Office