Icon button

qds-icon-button is a compact native action with a PrimeIcons or Lucide icon. Existing pi-*, prime:pi-*, and lucide:* icon values remain supported. The default appearance remains quiet, with a 44px minimum target.

<qds-icon-button icon="pi-cog" label="Settings"></qds-icon-button>
<qds-icon-button icon="lucide:plus" label="Add item" variant="primary"></qds-icon-button>
<qds-icon-button icon="pi-trash" aria-label="Delete draft" variant="destructive"></qds-icon-button>
<qds-icon-button icon="pi-save" label="Saving" loading></qds-icon-button>

Always supply an action-specific label or aria-label. The legacy generated fallback name remains for compatibility, but an icon identifier is not an adequate product label. aria-label takes precedence over label. Icons are decorative in the accessibility tree.

The component shares the button contract: variant="primary|secondary|quiet|destructive", size="sm|md|lg", disabled, loading, explicit type="button|submit|reset", associated forms and submitter overrides. Native keyboard activation dispatches one cancelable click with { component }; preventDefault cancels its form action. element.click() follows the same contract. Disabled/loading states block repeated activation. Optional aria-pressed, aria-expanded, and aria-controls are forwarded for host-managed interactions.

Focus uses a 2px outline with 2px offset. Light/dark themes, forced colors and reduced motion use the button foundation. CSS parts remain button and icon, with additive spinner. Load assets/components/icon-button/qds-icon-button.js independently; it imports the shared button engine and icon support, not the complete catalog.

Interactive demonstration covers icon formats, labels, variants, sizes, loading/disabled, and form actions.