Skip to main content

Checkbox

A checkbox lets users select one or more options, or toggle a single setting on or off. It has a filled selected state and one fixed box size.

Base
Mantine + override
Import
{ Checkbox } from '@mantine/core'
Source
src/themes/theme.ts
src/themes/style-overrides/checkbox.module.css

Usage​

indeterminate
disabled
React
<Checkbox label="Godta vilkårene" defaultChecked />

States​

StateTokenNotes
Focus--mantine-color-accentTight ring: box-shadow: 0 0 1px 1px.
Disabled--mantine-color-disabled · --mantine-color-disabled-borderThe check icon and label use --mantine-color-disabled-color.

Props​

Only what this design system changes. Everything else is Mantine's — read the full props table there.

PropertyTypeAllowed valuesDefaultDescription
radiusMantineRadius | number—xsRounds the box to 3px.
sizeMantineSize——Has no effect on the box, which is fixed at 18px. The label text stays 14px at every size.

Accessibility​

The label prop renders a <label> associated with the input — use it rather than placing text next to an unlabelled box. For the theme-wide rules, see Accessibility.