EEnterUI
DocsComponentsThemesDonation
Get Started
  • Component onboarding
    • Button
    • ButtonGroup
    • IconButton
    • Link
EnterUIDocsFoundationsActionsIconButton
FoundationsUpdated 6 May 2026

IconButton

An accessible icon-only action with refined size, variant, and loading states.

IconButton defines how EnterUI handles an accessible icon-only action with refined size, variant, and loading states, including default structure, accessible states, and token-driven styling.

#Default usage

Icon actions

Use IconButton when the icon is the whole action. Always provide an accessible name.

Code
<div className="docs-preview-row">
  <IconButton aria-label="Open menu">M</IconButton>
  <IconButton aria-label="Refresh" variant="primary">R</IconButton>
  <IconButton aria-label="Archive" variant="ghost">A</IconButton>
  <IconButton aria-label="Delete" variant="danger">D</IconButton>
  <IconButton aria-label="Loading" loading>…</IconButton>
</div>

#Import

Code
import { IconButton } from "@froggdesign/enter-ui-react";

#Accessibility

IconButton renders a native button. Provide aria-label, aria-labelledby, or title. Loading state keeps the button size stable and disables interaction.

#API

  • variant: primary, secondary, ghost, or danger.
  • size: sm, md, or lg.
  • loading disables the button and shows an in-place spinner.
  • Includes native button props and className.

#Styling

Uses .eui-icon-button classes and EnterUI color, shadow, radius, and focus variables.

PreviousButtonGroup
NextLink

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling