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
Mantine
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
| State | Token | Notes |
|---|---|---|
| Focus | --mantine-color-accent | Tight ring: box-shadow: 0 0 1px 1px. |
| Disabled | --mantine-color-disabled · --mantine-color-disabled-border | The 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.
| Property | Type | Allowed values | Default | Description |
|---|---|---|---|---|
radius | MantineRadius | number | — | xs | Rounds the box to 3px. |
size | MantineSize | — | — | 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.