Checkbox

Checkboxes let users select one or more options from a group of options

checkbox/main

Resources

Intro & Anatomy

Checkboxes are interactive form controls that allow users to make binary choices or select multiple options from a list. Use checkboxes when users can select one, multiple, or no items from a list e.g. selecting features, agreeing to terms, or filtering content.

Checkboxes can be implemented as standalone controls or grouped together for multiple related options.

MDX offers checkboxes with or without borders for different visual preferences.

checkbox/anatomy

 


 

Options & Styles

Value

Value are always required for checkboxes to clearly communicate the option or choice being presented to users.

checkbox/label

Indicator & Description

Indicator is optional and shows available item counts, e.g. product quantities in shop categories.
Description is optional and provides additional context about the checkbox option.

checkbox/indicator

Variants

MDX offers two checkbox variants:
with border and inside padding without border and no inside padding

checkbox/variants

States

Checkboxes have multiple interactive states for both unselected & selected:

Default for standard appearance
Hover for interactive feedback
Disabled for unavailable options

checkbox/states

Size & Width

Checkboxes have a fixed height of 48px to ensure adequate touch targets and accessibility compliance.

The width is determined by its container and should align with other elements within the same pattern, e.g. form fields and buttons.

checkbox/size

Disabled

A disabled checkbox shows that an option exists but isn't currently available, e.g. when certain conditions haven't been met or prerequisites are missing.

The cursor changes to indicate the checkbox is not interactive.

checkbox/disabled

 


 

Best Practice & Usage

Checkboxes should communicate their purpose clearly using descriptive labels and be used appropriately for multiple selection scenarios.

Don't check options by default to avoid dark UX patterns.

Ref to 90:2305
Ref to 90:2408
Ref to 90:2397
Ref to 90:2425
Ref to 90:2391
Ref to 90:2394
Ref to 98:3891
Ref to 98:3900
Ref to 90:2308
Ref to 90:2413

 


 

Theming

You can customise colours, border width and radius, font styles, spacing, and paddings to match your design requirements.

For checkbox groups, you can also adjust spacing between the group label, individual checkbox items.