CheckboxCard

CheckboxCard is a component used for allowing users to select multiple values from multiple options.

Usage

import { CheckboxCard, CheckboxCardGroup } from "@yamada-ui/react"
<CheckboxCardGroup.Root>
  <CheckboxCardGroup.Item.Root>
    <CheckboxCardGroup.Item.Label />
    <CheckboxCardGroup.Item.Description />
    <CheckboxCardGroup.Item.Addon />
  </CheckboxCardGroup.Item.Root>
</CheckboxCardGroup.Root>

Use Items

Change Variant

Change Size

Change Color Scheme

Set Default Value

To set a default value, set the value to defaultValue.

Limit the Number of Selections

To limit the number of selections, set a number to max.

Change Orientation

To change the orientation, set orientation to "horizontal" or "vertical". By default, "horizontal" is set.

Change Shape

Change Alignment

To change the alignment, set justify to "start" or "end", etc. By default, "start" is set.

Add Addon

To add an addon, set ReactNode to addon.

Hide Indicator

To hide the indicator, set withIndicator to false.

Disable

To disable, set disabled to true.

Read-Only

To make read-only, set readOnly to true.

Invalid

To make the input invalid, set invalid to true.

Customize Border Color

To customize the border color, set a value to focusBorderColor or errorBorderColor.

Customize Icon

To customize the icon, set ReactNode to checkedIcon.

Control

Props

Accessibility

Currently, this section is being updated due to the migration of v2.