ELFBAR

Icon Button

Icon-only square button supporting 4 color variants, 3 fill styles, and 3 shapes.

Stable

Icon Button is an icon-only button (no text label), used in toolbars, action menus, and other space-constrained contexts. An aria-label is required to provide an accessible description.

Anatomy

  1. Container — Fixed 56×56px (rounded/square); rectangle is wider horizontally
  2. Icon — 24×24px, color follows the variant
  3. State Layer — Background color changes on hover/press

Three Shapes

ShapeRadiusUse Case
rounded999px (full circle)Floating action buttons (FAB), primary icon actions
square16pxToolbars, card actions
rectangle24px + wider horizontallyHorizontal layouts, pill shape

Three Fill Styles

StyleAppearanceUse Case
filledColored background + white iconPrimary actions, high priority
outlineTransparent background + colored border + colored iconSecondary actions
ghostNo background, no border + colored iconLow-interference actions, toolbars

Accessibility (Important)

Icon Button has no visible text — an aria-label is required:

<IconButton icon={<SearchIcon />} aria-label="Search" />
RequirementDetails
aria-labelRequired, describes the button action
Focus ring2px brand-pink focus ring on keyboard focus
ContrastIcon-to-background contrast ≥ 4.5:1