Icon Button

Icon buttons are interactive components that use icons to trigger specific actions without text labels.

iconBtn/main

Resources

Intro & Anatomy

Icon buttons are interactive components that use universally recognisable icons to trigger actions without requiring text labels. Use icon buttons for secondary actions or when space is limited, e.g. editing, deleting, or favouriting items where the icon meaning is clear and intuitive.

MDX also offers icon button as a link for actions that navigate to different pages while maintaining button styling.

iconBtn/anatomy

 


 

Options & Styles

Icon

Icons are required and should be universally recognisable icons, such as a heart for like, a basket for cart, etc.

iconBtn/label

Types

MDX offers 4 icon button variants for clear visual hierarchy:

Primary for main actions
Secondary for secondary actions
Tertiary for supporting actions styled as text links
Quaternary for subtle, less important interactions

iconBtn/types

Sizes

MDX icon buttons come in three different sizes:

small, medium and large.

iconBtn/size

Variants

MDX offers 2 icon button variants for different design preferences:

rounded & square

iconBtn/variants

Disabled

A disabled icon button shows that an action exists but isn't currently available, like when a form hasn't been completed.

We recommend avoiding disabled buttons when possible, as they don't explain why the button isn’t usable, and aren't accessible via keyboard navigation.

iconBtn/disabled

 


 

Best Practice & Usage

Icon buttons should use universally recognisable icons that clearly communicate their purpose without requiring additional context.

Use icon buttons for secondary actions where space efficiency is important whilst ensuring accessibility through proper labelling.

Ref to 339:16493
Ref to 339:16614
Ref to 339:16496
Ref to 339:16617
Ref to 339:16501
Ref to 339:16622

 


 

Theming

You can customise colours, border width and radius, spacing, and paddings.

When not using MDX icons, a slot is available to use your own icon library or SVG icons.

We recommend not changing the medium button height as it meets the minimum accessibility criteria requirements.