Skip to Content
Documentation
Getting startedComponentsChartsTheming
Get Pro
Overview
Concepts

Checkmark

A visual indicator used to show checked, unchecked and indeterminate states.

Recipe

Anatomy

import { Checkmark } from '@chakra-ui/react'
<Checkmark checked />

Usage

Checkmark is the presentational box used inside Checkbox and Checkbox Card. It renders an svg and has no behavior of its own — it does not toggle, and it is not focusable.

Reach for it when you need the look of a checkbox without the interaction, for example in a list of selected items, a pricing feature table, or inside a custom control where you manage state yourself. For anything a user can toggle, use Checkbox instead, so you get the input, label association and keyboard handling.

Examples

States

The component supports three states — unchecked (default), checked and indeterminate — each of which can be combined with disabled.

Default

Disabled

Variants

Use the variant prop to change the visual style.

Sizes

Use the size prop to change the size.

Colors

Use the colorPalette prop to change the color scheme.

Props

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

The color palette of the component

size 'md'
'xs' | 'sm' | 'md' | 'lg'

The size of the component

variant 'solid'
'solid' | 'outline' | 'subtle' | 'plain' | 'inverted'

The variant of the component

checked
boolean

Whether the checkmark is checked

indeterminate
boolean

Whether the checkmark is indeterminate

disabled
boolean

Whether the checkmark is disabled